Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

ODEFTILE.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ODEFTILE.H

Go to the documentation of this file.
00001 //Filename    : ODefTile.H
00002 //Description : define game constant for tile bmp and size
00003 
00004 #ifndef __ODefTile_H
00005 #define __ODefTile_H
00006 
00008 class DefTile {
00009 public:
00010     //-------------- TILE_TYPE for map/zoom paint ---------------//
00011     enum {
00012         NUM_TILE = 3,
00013         BIG = 0, SMALL, BIGGEST,
00014 
00015         //temp for paints
00016         GRASS_BMP = 12,                             // 12 is the real one
00017         MARK_BMP = 13,
00018         TREE_BMP = 20, NUM_TREE_BMP = 3,
00019     };
00020 
00021     enum {
00022         // for Axoview::paint_tiles whose size > 1x1
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]; // = {        32, 8 };
00042     static const short CELL_FULL_HEIGHT[NUM_TILE];// = {        32, 8 };
00043 };
00044 #endif                                            // #ifndef __ODefTile_H

Generated on Fri Aug 23 01:37:20 2002 for VirtualU by doxygen1.2.17