2006-06-05 11:28:31 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2006-09-28 18:42:35 +00:00
|
|
|
#ifndef SHIP_H
|
|
|
|
#define SHIP_H
|
|
|
|
|
2006-06-05 11:28:31 +00:00
|
|
|
#include "vehicle.h"
|
|
|
|
|
2007-01-22 00:26:46 +00:00
|
|
|
void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
|
2006-09-26 16:47:51 +00:00
|
|
|
void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
|
2006-10-04 12:01:59 +00:00
|
|
|
void RecalcShipStuff(Vehicle *v);
|
2006-06-05 11:28:31 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2006-09-28 18:42:35 +00:00
|
|
|
|
|
|
|
#endif /* SHIP_H */
|