# tile_type.h

Go to the documentation of this file.

    00001 /* $Id: tile_type.h 12020 2008-01-30 17:22:06Z frosch $ */
    00002
    00005 #ifndef TILE_TYPE_H
    00006 #define TILE_TYPE_H
    00007
    00008 #include "core/enum_type.hpp"
    00009
    00010 enum {
    00011   TILE_SIZE   = 16,
    00012   TILE_PIXELS = 32,
    00013   TILE_HEIGHT =  8,
    00014
    00015   MAX_TILE_HEIGHT     = 15,
    00016   MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2),
    00017 };
    00018
    00019
    00027 enum TileType {
    00028   MP_CLEAR,
    00029   MP_RAILWAY,
    00030   MP_ROAD,
    00031   MP_HOUSE,
    00032   MP_TREES,
    00033   MP_STATION,
    00034   MP_WATER,
    00035   MP_VOID,
    00036   MP_INDUSTRY,
    00037   MP_TUNNELBRIDGE,
    00038   MP_UNMOVABLE,
    00039 };
    00040
    00056 enum TropicZone {
    00057   TROPICZONE_NORMAL     = 0,
    00058   TROPICZONE_DESERT     = 1,
    00059   TROPICZONE_RAINFOREST = 2,
    00060 };
    00061
    00065 typedef uint32 TileIndex;
    00066
    00070 static const TileIndex INVALID_TILE = (TileIndex)-1;
    00071
    00072 #endif /* TILE_TYPE_H */