tile_type.h

Go to the documentation of this file.
00001 /* $Id$ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef TILE_TYPE_H
00013 #define TILE_TYPE_H
00014 
00015 static const uint TILE_SIZE      = 16;            
00016 static const uint HALF_TILE_SIZE = TILE_SIZE / 2; 
00017 static const uint TILE_UNIT_MASK = TILE_SIZE - 1; 
00018 static const uint TILE_PIXELS    = 32;            
00019 static const uint TILE_HEIGHT    =  8;            
00020 
00021 static const uint MAX_TILE_HEIGHT     = 15;                    
00022 
00023 static const uint MIN_SNOWLINE_HEIGHT = 2;                     
00024 static const uint DEF_SNOWLINE_HEIGHT = 7;                     
00025 static const uint MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2); 
00026 
00027 
00035 enum TileType {
00036   MP_CLEAR,               
00037   MP_RAILWAY,             
00038   MP_ROAD,                
00039   MP_HOUSE,               
00040   MP_TREES,               
00041   MP_STATION,             
00042   MP_WATER,               
00043   MP_VOID,                
00044   MP_INDUSTRY,            
00045   MP_TUNNELBRIDGE,        
00046   MP_OBJECT,              
00047 };
00048 
00064 enum TropicZone {
00065   TROPICZONE_NORMAL     = 0,      
00066   TROPICZONE_DESERT     = 1,      
00067   TROPICZONE_RAINFOREST = 2,      
00068 };
00069 
00073 typedef uint32 TileIndex;
00074 
00078 static const TileIndex INVALID_TILE = (TileIndex)-1;
00079 
00080 #endif /* TILE_TYPE_H */

Generated on Sun May 8 07:30:21 2011 for OpenTTD by  doxygen 1.6.1