ship.h
author bjarni
Thu, 28 Sep 2006 18:13:31 +0000
changeset 4665 d58f13102cc3
parent 4638 05955c6cb536
child 4666 172a0cdf28a6
permissions -rw-r--r--
(svn r6559) -Codechange: [vehicle list windows] moved creation and drawing code into two new functions to make it easier to see what goes on where
/* $Id$ */

#include "vehicle.h"

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

static inline bool IsShipInDepot(const Vehicle* v)
{
	assert(v->type == VEH_Ship);
	return v->u.ship.state == 0x80;
}

static inline bool IsShipInDepotStopped(const Vehicle* v)
{
	return IsShipInDepot(v) && v->vehstatus & VS_STOPPED;
}