ship.h
author miham
Fri, 08 Dec 2006 17:40:42 +0000
changeset 5285 b4a8aa4e55fe
parent 4725 f7284b86833f
permissions -rw-r--r--
(svn r7434) WebTranslator2 update to 2006-12-08 18:40:00
american - 1 fixed by WhiteRabbit (1)
bulgarian - 5 fixed, 2 changed by groupsky (7)
esperanto - 314 fixed, 31 changed by LaPingvino (345)
french - 3 fixed, 5 changed by glx (8)
italian - 7 fixed, 3 changed by sidew (10)
portuguese - 3 fixed by izhirahider (3)
slovak - 7 fixed, 8 changed by lengyel (15)
ukrainian - 10 fixed by znikoz (10)
/* $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 */