# 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 #include "core/enum_type.hpp"
    00016
    00017 enum {
    00018   TILE_SIZE      = 16,
    00019   TILE_UNIT_MASK = TILE_SIZE - 1,
    00020   TILE_PIXELS    = 32,
    00021   TILE_HEIGHT    =  8,
    00022
    00023   MAX_TILE_HEIGHT     = 15,
    00024   MIN_SNOWLINE_HEIGHT = 2,
    00025   DEF_SNOWLINE_HEIGHT = 7,
    00026   MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2),
    00027 };
    00028
    00029
    00037 enum TileType {
    00038   MP_CLEAR,
    00039   MP_RAILWAY,
    00040   MP_ROAD,
    00041   MP_HOUSE,
    00042   MP_TREES,
    00043   MP_STATION,
    00044   MP_WATER,
    00045   MP_VOID,
    00046   MP_INDUSTRY,
    00047   MP_TUNNELBRIDGE,
    00048   MP_UNMOVABLE,
    00049 };
    00050
    00066 enum TropicZone {
    00067   TROPICZONE_NORMAL     = 0,
    00068   TROPICZONE_DESERT     = 1,
    00069   TROPICZONE_RAINFOREST = 2,
    00070 };
    00071
    00075 typedef uint32 TileIndex;
    00076
    00080 static const TileIndex INVALID_TILE = (TileIndex)-1;
    00081
    00082 #endif /* TILE_TYPE_H */