Added some typedefs for clarity, and also added a cAttack class.
git-svn-id: http://openexile.googlecode.com/svn/trunk@77 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -24,7 +24,7 @@ public:
|
||||
class cTerRect { // formerly city_ter_rect_type
|
||||
public:
|
||||
rectangle rect;
|
||||
unsigned short ter_type;
|
||||
ter_num_t ter_type;
|
||||
unsigned char hollow;
|
||||
};
|
||||
cCityBlock blocks[15];
|
||||
@@ -35,11 +35,11 @@ public:
|
||||
class cBigTemplTown : public cBigTown, cTemplTown {
|
||||
private:
|
||||
//cCreature _creatures[60];
|
||||
//unsigned short _terrain[64][64];
|
||||
//ter_num_t _terrain[64][64];
|
||||
//rectangle _room_rect[16];
|
||||
//unsigned char _lighting[4][32];
|
||||
public:
|
||||
unsigned short& terrain(size_t x, size_t y);
|
||||
ter_num_t& terrain(size_t x, size_t y);
|
||||
rectangle& room_rect(size_t i);
|
||||
cCreature& creatures(size_t i);
|
||||
unsigned char& lighting(size_t i, size_t r);
|
||||
@@ -52,11 +52,11 @@ public:
|
||||
class cMedTemplTown : public cMedTown, cTemplTown {
|
||||
private:
|
||||
//cCreature _creatures[40];
|
||||
//unsigned short _terrain[48][48];
|
||||
//ter_num_t _terrain[48][48];
|
||||
//rectangle _room_rect[16];
|
||||
//unsigned char _lighting[4][32];
|
||||
public:
|
||||
unsigned short& terrain(size_t x, size_t y);
|
||||
ter_num_t& terrain(size_t x, size_t y);
|
||||
rectangle& room_rect(size_t i);
|
||||
cCreature& creatures(size_t i);
|
||||
unsigned char& lighting(size_t i, size_t r);
|
||||
@@ -69,11 +69,11 @@ public:
|
||||
class cTinyTemplTown : public cTinyTown, cTemplTown {
|
||||
private:
|
||||
//cCreature _creatures[30];
|
||||
//unsigned short _terrain[32][32];
|
||||
//ter_num_t _terrain[32][32];
|
||||
//rectangle _room_rect[16];
|
||||
//unsigned char _lighting[4][32];
|
||||
public:
|
||||
unsigned short& terrain(size_t x, size_t y);
|
||||
ter_num_t& terrain(size_t x, size_t y);
|
||||
rectangle& room_rect(size_t i);
|
||||
cCreature& creatures(size_t i);
|
||||
unsigned char& lighting(size_t i, size_t r);
|
||||
|
Reference in New Issue
Block a user