# tile_type.h

Go to the documentation of this file.

    00001 /* $Id: tile_type.h 18809 2010-01-15 16:41:15Z 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
    00016 enum {
    00017   TILE_SIZE      = 16,
    00018   TILE_UNIT_MASK = TILE_SIZE - 1,
    00019   TILE_PIXELS    = 32,
    00020   TILE_HEIGHT    =  8,
    00021
    00022   MAX_TILE_HEIGHT     = 15,
    00023   MIN_SNOWLINE_HEIGHT = 2,
    00024   DEF_SNOWLINE_HEIGHT = 7,
    00025   MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2),
    00026 };
    00027
    00028
    00036 enum TileType {
    00037   MP_CLEAR,
    00038   MP_RAILWAY,
    00039   MP_ROAD,
    00040   MP_HOUSE,
    00041   MP_TREES,
    00042   MP_STATION,
    00043   MP_WATER,
    00044   MP_VOID,
    00045   MP_INDUSTRY,
    00046   MP_TUNNELBRIDGE,
    00047   MP_UNMOVABLE,
    00048 };
    00049
    00065 enum TropicZone {
    00066   TROPICZONE_NORMAL     = 0,
    00067   TROPICZONE_DESERT     = 1,
    00068   TROPICZONE_RAINFOREST = 2,
    00069 };
    00070
    00074 typedef uint32 TileIndex;
    00075
    00079 static const TileIndex INVALID_TILE = (TileIndex)-1;
    00080
    00081 #endif /* TILE_TYPE_H */