author | bjarni |
Fri, 24 Mar 2006 10:53:49 +0000 | |
changeset 3318 | b54ff6bb28be |
parent 3315 | 1f65f8260092 |
child 3334 | b72ac8637a30 |
permissions | -rw-r--r-- |
3315
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
1 |
/* $Id$ */ |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
2 |
|
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
3 |
#include "station.h" |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
4 |
|
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
5 |
|
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
6 |
static inline StationID GetStationIndex(TileIndex t) |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
7 |
{ |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
8 |
return (StationID)_m[t].m2; |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
9 |
} |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
10 |
|
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
11 |
static inline Station* GetStationByTile(TileIndex t) |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
12 |
{ |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
13 |
return GetStation(GetStationIndex(t)); |
1f65f8260092
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
tron
parents:
diff
changeset
|
14 |
} |