10035
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
#include "tile.h"
|
|
4 |
|
|
5 |
#ifndef STATION_MAP_H
|
|
6 |
#define STATION_MAP_H
|
|
7 |
|
|
8 |
typedef byte StationGfx;
|
|
9 |
|
|
10 |
|
|
11 |
typedef enum HangarTiles {
|
|
12 |
HANGAR_TILE_0 = 32,
|
|
13 |
HANGAR_TILE_1 = 65,
|
|
14 |
HANGAR_TILE_2 = 86
|
|
15 |
} HangarTiles;
|
|
16 |
|
|
17 |
|
|
18 |
static inline StationGfx GetStationGfx(TileIndex t)
|
|
19 |
{
|
|
20 |
assert(IsTileType(t, MP_STATION));
|
|
21 |
return _m[t].m5;
|
|
22 |
}
|
|
23 |
|
|
24 |
|
|
25 |
static inline bool IsHangar(TileIndex t)
|
|
26 |
{
|
|
27 |
StationGfx gfx = GetStationGfx(t);
|
|
28 |
return
|
|
29 |
gfx == HANGAR_TILE_0 ||
|
|
30 |
gfx == HANGAR_TILE_1 ||
|
|
31 |
gfx == HANGAR_TILE_2;
|
|
32 |
}
|
|
33 |
|
|
34 |
|
|
35 |
static inline bool IsHangarTile(TileIndex t)
|
|
36 |
{
|
|
37 |
return IsTileType(t, MP_STATION) && IsHangar(t);
|
|
38 |
}
|
|
39 |
|
|
40 |
#endif
|