root/trunk/contrib/extractor/adt.h @ 247

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
8typedef unsigned char uint8;
9typedef unsigned short uint16;
10typedef unsigned int uint32;
11class Liquid;
12typedef struct {
13float x;
14float y;
15float z;
16}svec;
17
18typedef struct {
19double x;
20double y;
21double z;
22}vec;
23
24typedef struct{
25    vec v[3];
26}triangle;
27
28typedef struct{
29float v9[16*8+1][16*8+1];
30float v8[16*8][16*8];
31}Cell;
32
33typedef struct{
34double v9[9][9];
35double v8[8][8];
36uint16 area_id;
37//Liquid *lq;
38float waterlevel[9][9];
39uint8 flag;
40}chunk;
41
42class WMO;
43class WMOManager;
44void fixname(std::string &name);
45
46typedef struct
47{
48chunk ch[16][16];
49}mcell;
50class MPQFile;
51void LoadMapChunk(MPQFile &,chunk*);
52bool LoadWMO(char* filename);
53#endif
54
Note: See TracBrowser for help on using the browser.