ship.h
author miham
Tue, 02 Jan 2007 18:41:54 +0000
changeset 5723 e5dbef476258
parent 4725 f7284b86833f
permissions -rw-r--r--
(svn r7756) WebTranslator2 update to 2007-01-02 19:29:06 part #2
Somehow SVN hang when I tried to commit lithuanian changes, let me try it again

lithuanian - 170 fixed, 26 changed by Domas (196)
/* $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 */