tron@10035: /* $Id$ */ tron@10035: tron@10035: #include "tile.h" tron@10035: tron@10035: #ifndef STATION_MAP_H tron@10035: #define STATION_MAP_H tron@10035: tron@10035: typedef byte StationGfx; tron@10035: tron@10035: tron@10035: typedef enum HangarTiles { tron@10035: HANGAR_TILE_0 = 32, tron@10035: HANGAR_TILE_1 = 65, tron@10035: HANGAR_TILE_2 = 86 tron@10035: } HangarTiles; tron@10035: tron@10035: tron@10035: static inline StationGfx GetStationGfx(TileIndex t) tron@10035: { tron@10035: assert(IsTileType(t, MP_STATION)); tron@10035: return _m[t].m5; tron@10035: } tron@10035: tron@10035: tron@10035: static inline bool IsHangar(TileIndex t) tron@10035: { tron@10035: StationGfx gfx = GetStationGfx(t); tron@10035: return tron@10035: gfx == HANGAR_TILE_0 || tron@10035: gfx == HANGAR_TILE_1 || tron@10035: gfx == HANGAR_TILE_2; tron@10035: } tron@10035: tron@10035: tron@10035: static inline bool IsHangarTile(TileIndex t) tron@10035: { tron@10035: return IsTileType(t, MP_STATION) && IsHangar(t); tron@10035: } tron@10035: tron@10035: #endif