author | Darkvater |
Sat, 12 Aug 2006 12:35:23 +0000 | |
branch | 0.4 |
changeset 10075 | 7ae6bc813772 |
parent 10050 | 53795ed4cdaf |
permissions | -rw-r--r-- |
10032 | 1 |
/* $Id$ */ |
2 |
||
3 |
#ifndef TUNNEL_MAP_H |
|
4 |
#define TUNNEL_MAP_H |
|
5 |
||
6 |
#include "macros.h" |
|
7 |
#include "map.h" |
|
8 |
||
9 |
||
10 |
static inline bool IsTunnel(TileIndex t) |
|
11 |
{ |
|
12 |
assert(IsTileType(t, MP_TUNNELBRIDGE)); |
|
13 |
return !HASBIT(_m[t].m5, 7); |
|
14 |
} |
|
15 |
||
16 |
||
17 |
static inline uint GetTunnelDirection(TileIndex t) |
|
18 |
{ |
|
19 |
assert(IsTunnelTile(t)); |
|
20 |
return (uint)GB(_m[t].m5, 0, 2); |
|
21 |
} |
|
22 |
||
10050 | 23 |
|
24 |
bool IsTunnelInWay(TileIndex, uint z); |
|
25 |
||
10032 | 26 |
#endif |