tile_type.h

Go to the documentation of this file.
00001 /* $Id: tile_type.h 20411 2010-08-08 10:59:30Z rubidium $ */
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 TILE_UNIT_MASK = TILE_SIZE - 1; 
00017 static const uint TILE_PIXELS    = 32;            
00018 static const uint TILE_HEIGHT    =  8;            
00019 
00020 static const uint MAX_TILE_HEIGHT     = 15;                    
00021 
00022 static const uint MIN_SNOWLINE_HEIGHT = 2;                     
00023 static const uint DEF_SNOWLINE_HEIGHT = 7;                     
00024 static const uint MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2); 
00025 
00026 
00034 enum TileType {
00035   MP_CLEAR,               
00036   MP_RAILWAY,             
00037   MP_ROAD,                
00038   MP_HOUSE,               
00039   MP_TREES,               
00040   MP_STATION,             
00041   MP_WATER,               
00042   MP_VOID,                
00043   MP_INDUSTRY,            
00044   MP_TUNNELBRIDGE,        
00045   MP_OBJECT,              
00046 };
00047 
00063 enum TropicZone {
00064   TROPICZONE_NORMAL     = 0,      
00065   TROPICZONE_DESERT     = 1,      
00066   TROPICZONE_RAINFOREST = 2,      
00067 };
00068 
00072 typedef uint32 TileIndex;
00073 
00077 static const TileIndex INVALID_TILE = (TileIndex)-1;
00078 
00079 #endif /* TILE_TYPE_H */

Generated on Fri Dec 31 17:15:40 2010 for OpenTTD by  doxygen 1.6.1