Files
TCPlayerbotCore/contrib/extractor/adt.h
T

56 lines
780 B
C++
Raw Normal View History

2008-10-02 16:23:55 -05:00
#ifndef ADT_H
#define ADT_H
#define TILESIZE (533.33333f)
#define CHUNKSIZE ((TILESIZE) / 16.0f)
#define UNITSIZE (CHUNKSIZE / 8.0f)
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
class Liquid;
2008-12-24 11:18:01 -06:00
typedef struct {
float x;
float y;
float z;
}svec;
typedef struct {
double x;
double y;
double z;
}vec;
typedef struct{
2008-10-02 16:23:55 -05:00
vec v[3];
2008-12-24 11:18:01 -06:00
}triangle;
2008-10-02 16:23:55 -05:00
2008-12-24 11:18:01 -06:00
typedef struct{
float v9[16*8+1][16*8+1];
float v8[16*8][16*8];
}Cell;
2008-10-02 16:23:55 -05:00
2008-12-24 11:18:01 -06:00
typedef struct{
double v9[9][9];
double v8[8][8];
uint16 area_id;
//Liquid *lq;
float waterlevel[9][9];
uint8 flag;
}chunk;
2008-10-02 16:23:55 -05:00
2008-12-24 11:18:01 -06:00
class WMO;
class WMOManager;
void fixname(std::string &name);
2008-10-02 16:23:55 -05:00
typedef struct
{
2008-12-24 11:18:01 -06:00
chunk ch[16][16];
}mcell;
2008-10-02 16:23:55 -05:00
class MPQFile;
2008-12-24 11:18:01 -06:00
void LoadMapChunk(MPQFile &,chunk*);
bool LoadWMO(char* filename);
2008-10-02 16:23:55 -05:00
#endif
2009-02-17 20:07:49 -06:00