Added achievement dbc stuff, fixed linux build
[getmangos.git] / contrib / extractor / adt.h
blobbae687f6b5490db02fb3cf2061868d5afb293422
1 #ifndef ADT_H
2 #define ADT_H
4 #define TILESIZE (533.33333f)
5 #define CHUNKSIZE ((TILESIZE) / 16.0f)
6 #define UNITSIZE (CHUNKSIZE / 8.0f)
8 typedef unsigned char uint8;
9 typedef unsigned short uint16;
10 typedef unsigned int uint32;
11 class Liquid;
12 typedef struct {
13 float x;
14 float y;
15 float z;
16 }svec;
18 typedef struct {
19 double x;
20 double y;
21 double z;
22 }vec;
24 typedef struct{
25 vec v[3];
26 }triangle;
28 typedef struct{
29 float v9[16*8+1][16*8+1];
30 float v8[16*8][16*8];
31 }Cell;
33 typedef struct{
34 double v9[9][9];
35 double v8[8][8];
36 uint16 area_id;
37 //Liquid *lq;
38 float waterlevel[9][9];
39 uint8 flag;
40 }chunk;
42 class WMO;
43 class WMOManager;
44 void fixname(std::string &name);
46 typedef struct
48 chunk ch[16][16];
49 }mcell;
50 class MPQFile;
51 void LoadMapChunk(MPQFile &,chunk*);
52 bool LoadWMO(char* filename);
53 #endif