Revision 2, 0.8 kB
(checked in by yumileroy, 17 years ago)
|
[svn] * Proper SVN structure
Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00
|
Line | |
---|
1 | #ifndef ADT_H |
---|
2 | #define ADT_H |
---|
3 | |
---|
4 | #define TILESIZE (533.33333f) |
---|
5 | #define CHUNKSIZE ((TILESIZE) / 16.0f) |
---|
6 | #define UNITSIZE (CHUNKSIZE / 8.0f) |
---|
7 | |
---|
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; |
---|
17 | |
---|
18 | typedef struct { |
---|
19 | double x; |
---|
20 | double y; |
---|
21 | double z; |
---|
22 | }vec; |
---|
23 | |
---|
24 | typedef struct{ |
---|
25 | vec v[3]; |
---|
26 | }triangle; |
---|
27 | |
---|
28 | typedef struct{ |
---|
29 | float v9[16*8+1][16*8+1]; |
---|
30 | float v8[16*8][16*8]; |
---|
31 | }Cell; |
---|
32 | |
---|
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; |
---|
41 | |
---|
42 | class WMO; |
---|
43 | class WMOManager; |
---|
44 | void fixname(std::string &name); |
---|
45 | |
---|
46 | typedef struct |
---|
47 | { |
---|
48 | chunk ch[16][16]; |
---|
49 | }mcell; |
---|
50 | class MPQFile; |
---|
51 | void LoadMapChunk(MPQFile &,chunk*); |
---|
52 | bool LoadWMO(char* filename); |
---|
53 | #endif |
---|
54 | |
---|