src/roadveh.h
author peter1138
Wed, 18 Apr 2007 07:22:53 +0000
changeset 6981 5dfb8540e66a
parent 6913 cc3f6bb84d6d
child 7048 06b931095b26
permissions -rw-r--r--
(svn r9666) -Fix (r9651): end of data / column flags were reversed
/* $Id$ */

/** @file src/roadveh.h Road vehicle states */

#ifndef ROADVEH_H
#define ROADVEH_H

#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;
}

void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);
void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);

#endif /* ROADVEH_H */