src/ship.h
author rubidium
Wed, 03 Jan 2007 08:55:13 +0000
branchcustombridgeheads
changeset 5644 ec96a5a38023
parent 5643 3778051e8095
child 6034 89a7d10fa75b
permissions -rw-r--r--
(svn r7791) [cbh] -Fix (r7790): forgot to run projects/generate, so the MSVC project files were not in sync with sources.list.
/* $Id$ */

#ifndef SHIP_H
#define SHIP_H

#include "vehicle.h"

void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
void RecalcShipStuff(Vehicle *v);

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

#endif /* SHIP_H */