00001
00002
00003
00004 #ifndef __ODefTile_H
00005 #define __ODefTile_H
00006
00008 class DefTile {
00009 public:
00010
00011 enum {
00012 NUM_TILE = 3,
00013 BIG = 0, SMALL, BIGGEST,
00014
00015
00016 GRASS_BMP = 12,
00017 MARK_BMP = 13,
00018 TREE_BMP = 20, NUM_TREE_BMP = 3,
00019 };
00020
00021 enum {
00022
00023 MAX_WIDTH = 7,
00024 MAX_HEIGHT = 10,
00025 };
00026
00027 static inline bool is_firm(unsigned short id) {
00028 if ( id >= TREE_BMP && id < TREE_BMP + NUM_TREE_BMP )
00029 return false;
00030 else
00031 return true;
00032 };
00033
00034 static inline bool is_not_valid_type(short tileType) {
00035 if ( tileType < NUM_TILE && tileType >= 0 )
00036 return false;
00037 else
00038 return true;
00039 };
00040
00041 static const short CELL_FULL_WIDTH[NUM_TILE];
00042 static const short CELL_FULL_HEIGHT[NUM_TILE];
00043 };
00044 #endif // #ifndef __ODefTile_H