src/roadveh.h
author belugas
Wed, 28 Mar 2007 20:41:35 +0000
changeset 6393 e1e4939d19b5
parent 6259 471b91a4b1d8
child 6417 7594fdb854fd
permissions -rw-r--r--
(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"
/* $Id$ */

/** @file roadveh.h */

#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 */