src/tile_type.h
changeset 8138 dbfdc08fa6b9
parent 8108 b42a0e5c67ef
child 8450 73371bb82922
equal deleted inserted replaced
8137:8233ffd0f1ab 8138:dbfdc08fa6b9
     5 #ifndef TILE_TYPE_H
     5 #ifndef TILE_TYPE_H
     6 #define TILE_TYPE_H
     6 #define TILE_TYPE_H
     7 
     7 
     8 #include "core/enum_type.hpp"
     8 #include "core/enum_type.hpp"
     9 
     9 
    10 /** Maximum allowed tile height */
    10 enum {
    11 #define MAX_TILE_HEIGHT 15
    11 	TILE_SIZE   = 16,   ///< Tiles are 16x16 "units" in size
       
    12 	TILE_PIXELS = 32,   ///< a tile is 32x32 pixels
       
    13 	TILE_HEIGHT =  8,   ///< The standard height-difference between tiles on two levels is 8 (z-diff 8)
    12 
    14 
    13 /** Maximum allowed snowline height */
    15 	MAX_TILE_HEIGHT     = 15,                    ///< Maximum allowed tile height
    14 #define MAX_SNOWLINE_HEIGHT (MAX_TILE_HEIGHT - 2)
    16 	MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2), ///< Maximum allowed snowline height
       
    17 };
       
    18 
    15 
    19 
    16 /**
    20 /**
    17  * The different type of a tile.
    21  * The different type of a tile.
    18  *
    22  *
    19  * Each tile belongs to one type, according whatever is build on it.
    23  * Each tile belongs to one type, according whatever is build on it.
    49 /**
    53 /**
    50  * The index/ID of a Tile.
    54  * The index/ID of a Tile.
    51  */
    55  */
    52 typedef uint32 TileIndex;
    56 typedef uint32 TileIndex;
    53 
    57 
       
    58 /**
       
    59  * The very nice invalid tile marker
       
    60  */
       
    61 static const TileIndex INVALID_TILE = (TileIndex)-1;
       
    62 
    54 #endif /* TILE_TYPE_H */
    63 #endif /* TILE_TYPE_H */