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_OLD = 15;
00022 static const uint MAX_TILE_HEIGHT_EXTENDED = 255;
00023
00024 static const uint MIN_SNOWLINE_HEIGHT = 2;
00025 static const uint DEF_SNOWLINE_HEIGHT_OLD = 7;
00026 static const uint DEF_SNOWLINE_HEIGHT_EXTENDED = 24;
00027 static const uint MAX_SNOWLINE_HEIGHT_OLD = (MAX_TILE_HEIGHT_OLD - 2);
00028 static const uint MAX_SNOWLINE_HEIGHT_EXTENDED = (MAX_TILE_HEIGHT_EXTENDED - 2);
00029
00030 static const uint MIN_DESERT_AMOUNT = 4;
00031 static const uint DEF_DESERT_AMOUNT = 7;
00032 static const uint MAX_DESERT_AMOUNT = 200;
00033
00034 static const uint MIN_TREELINE_HEIGHT = 0;
00035 static const uint DEF_TREELINE_HEIGHT_OLD = MAX_TILE_HEIGHT_OLD;
00036 static const uint DEF_TREELINE_HEIGHT_EXTENDED = MAX_TILE_HEIGHT_EXTENDED;
00037 static const uint MAX_TREELINE_HEIGHT_OLD = MAX_TILE_HEIGHT_OLD;
00038 static const uint MAX_TREELINE_HEIGHT_EXTENDED = MAX_TILE_HEIGHT_EXTENDED;
00039
00047 enum TileType {
00048 MP_CLEAR,
00049 MP_RAILWAY,
00050 MP_ROAD,
00051 MP_HOUSE,
00052 MP_TREES,
00053 MP_STATION,
00054 MP_WATER,
00055 MP_VOID,
00056 MP_INDUSTRY,
00057 MP_TUNNELBRIDGE,
00058 MP_OBJECT,
00059 };
00060
00076 enum TropicZone {
00077 TROPICZONE_NORMAL = 0,
00078 TROPICZONE_DESERT = 1,
00079 TROPICZONE_RAINFOREST = 2,
00080 };
00081
00085 typedef uint32 TileIndex;
00086
00090 static const TileIndex INVALID_TILE = (TileIndex)-1;
00091
00092 #endif