tile_type.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
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