author | belugas |
Mon, 16 Apr 2007 19:44:22 +0000 | |
changeset 6971 | ecd31bf08a31 |
parent 6913 | cc3f6bb84d6d |
child 7048 | 06b931095b26 |
permissions | -rw-r--r-- |
3959 | 1 |
/* $Id$ */ |
2 |
||
6913 | 3 |
/** @file src/roadveh.h Road vehicle states */ |
6889
f7f6d9cb07a0
(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"
belugas
parents:
6585
diff
changeset
|
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 |
{ |
|
6585
7da94b26498a
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
rubidium
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 */ |