author | KUDr |
Sat, 21 Apr 2007 08:23:57 +0000 | |
branch | cpp_gui |
changeset 6308 | 646711c5feaa |
parent 6307 | f40e88cff863 |
child 9620 | 31e38d28a0af |
permissions | -rw-r--r-- |
3959 | 1 |
/* $Id$ */ |
2 |
||
6307 | 3 |
/** @file src/roadveh.h Road vehicle states */ |
4 |
||
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
|
5 |
#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
|
6 |
#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
|
7 |
|
3959 | 8 |
#include "vehicle.h" |
9 |
||
10 |
||
11 |
static inline bool IsRoadVehInDepot(const Vehicle* v) |
|
12 |
{ |
|
6298
c30fe89622df
(svn r9119) [cpp_gui] -Sync with trunk (r9003:9100)
bjarni
parents:
6037
diff
changeset
|
13 |
assert(v->type == VEH_ROAD); |
3959 | 14 |
return v->u.road.state == 254; |
15 |
} |
|
16 |
||
17 |
static inline bool IsRoadVehInDepotStopped(const Vehicle* v) |
|
18 |
{ |
|
19 |
return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED; |
|
20 |
} |
|
4653
091f530bae28
(svn r6529) -Fix r6513: [depot window] added missing switch in CcCloneVehicle()
bjarni
parents:
3959
diff
changeset
|
21 |
|
6037
7409c8f581e1
(svn r8338) -Codechange: merged road vehicle build window into the other ones
bjarni
parents:
5726
diff
changeset
|
22 |
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
|
23 |
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
|
24 |
|
850b5b6e4bac
(svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents:
4653
diff
changeset
|
25 |
#endif /* ROADVEH_H */ |