AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
adt.cpp File Reference
#include "adt.h"

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

bool isHole (int holes, int i, int j)
 

Variables

int holetab_h [4] = { 0x1111, 0x2222, 0x4444, 0x8888 }
 
int holetab_v [4] = { 0x000F, 0x00F0, 0x0F00, 0xF000 }
 
u_map_fcc MHDRMagic = { { 'R', 'D', 'H', 'M' } }
 
u_map_fcc MCINMagic = { { 'N', 'I', 'C', 'M' } }
 
u_map_fcc MH2OMagic = { { 'O', '2', 'H', 'M' } }
 
u_map_fcc MCNKMagic = { { 'K', 'N', 'C', 'M' } }
 
u_map_fcc MCVTMagic = { { 'T', 'V', 'C', 'M' } }
 
u_map_fcc MCLQMagic = { { 'Q', 'L', 'C', 'M' } }
 
u_map_fcc MFBOMagic = { { 'O', 'B', 'F', 'M' } }
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

◆ isHole()

bool isHole ( int  holes,
int  i,
int  j 
)
35{
36 int testi = i / 2;
37 int testj = j / 4;
38 if (testi > 3) testi = 3;
39 if (testj > 3) testj = 3;
40 return (holes & holetab_h[testi] & holetab_v[testj]) != 0;
41}
int holetab_v[4]
Definition: adt.cpp:24
int holetab_h[4]
Definition: adt.cpp:23
uint16 holes[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID]
Definition: System.cpp:405

References holes, holetab_h, and holetab_v.

Variable Documentation

◆ holetab_h

int holetab_h[4] = { 0x1111, 0x2222, 0x4444, 0x8888 }

Referenced by isHole().

◆ holetab_v

int holetab_v[4] = { 0x000F, 0x00F0, 0x0F00, 0xF000 }

Referenced by isHole().

◆ MCINMagic

u_map_fcc MCINMagic = { { 'N', 'I', 'C', 'M' } }

◆ MCLQMagic

u_map_fcc MCLQMagic = { { 'Q', 'L', 'C', 'M' } }

◆ MCNKMagic

u_map_fcc MCNKMagic = { { 'K', 'N', 'C', 'M' } }

◆ MCVTMagic

u_map_fcc MCVTMagic = { { 'T', 'V', 'C', 'M' } }

◆ MFBOMagic

u_map_fcc MFBOMagic = { { 'O', 'B', 'F', 'M' } }

◆ MH2OMagic

u_map_fcc MH2OMagic = { { 'O', '2', 'H', 'M' } }

◆ MHDRMagic

u_map_fcc MHDRMagic = { { 'R', 'D', 'H', 'M' } }