author | rubidium |
Thu, 01 Feb 2007 15:49:12 +0000 | |
changeset 5893 | 7e431a4abebb |
parent 5786 | 9bbd2d7f2a30 |
child 6259 | 471b91a4b1d8 |
permissions | -rw-r--r-- |
3959 | 1 |
/* $Id$ */ |
2 |
||
4666
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
3 |
#ifndef ROADVEH_H |
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
4 |
#define ROADVEH_H |
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
5 |
|
3959 | 6 |
#include "vehicle.h" |
7 |
||
8 |
||
9 |
static inline bool IsRoadVehInDepot(const Vehicle* v) |
|
10 |
{ |
|
11 |
assert(v->type == VEH_Road); |
|
12 |
return v->u.road.state == 254; |
|
13 |
} |
|
14 |
||
15 |
static inline bool IsRoadVehInDepotStopped(const Vehicle* v) |
|
16 |
{ |
|
17 |
return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED; |
|
18 |
} |
|
4653
9f72ab9dc4a7
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
19 |
|
5786
9bbd2d7f2a30
(svn r8338) -Codechange: merged road vehicle build window into the other ones
bjarni
parents:
5475
diff
changeset
|
20 |
void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4653
9f72ab9dc4a7
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
21 |
void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4666
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
22 |
|
172a0cdf28a6
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
23 |
#endif /* ROADVEH_H */ |