2006-06-05 12:23:18 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2006-09-28 20:42:35 +02:00
|
|
|
#ifndef ROADVEH_H
|
|
|
|
#define ROADVEH_H
|
|
|
|
|
2006-06-05 12:23:18 +02:00
|
|
|
#include "vehicle.h"
|
|
|
|
|
|
|
|
|
|
|
|
static inline bool IsRoadVehInDepot(const Vehicle* v)
|
|
|
|
{
|
|
|
|
assert(v->type == VEH_Road);
|
|
|
|
return v->u.road.state == 254;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline bool IsRoadVehInDepotStopped(const Vehicle* v)
|
|
|
|
{
|
|
|
|
return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED;
|
|
|
|
}
|
2006-09-27 17:40:55 +02:00
|
|
|
|
|
|
|
void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);
|
2006-09-28 20:42:35 +02:00
|
|
|
|
|
|
|
#endif /* ROADVEH_H */
|