author | KUDr |
Sun, 18 Feb 2007 14:17:28 +0000 | |
branch | cpp_gui |
changeset 6258 | a2f86b8fd99b |
parent 6037 | 7409c8f581e1 |
child 6298 | c30fe89622df |
permissions | -rw-r--r-- |
3959 | 1 |
/* $Id$ */ |
2 |
||
4666
850b5b6e4bac
(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 |
850b5b6e4bac
(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 |
850b5b6e4bac
(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
091f530bae28
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
19 |
|
6037
7409c8f581e1
(svn r8338) -Codechange: merged road vehicle build window into the other ones
bjarni
parents:
5726
diff
changeset
|
20 |
void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); |
4653
091f530bae28
(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
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
22 |
|
850b5b6e4bac
(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 */ |