tron@3962: /* $Id$ */ tron@3962: belugas@6420: /** @file ship.h */ belugas@6420: peter1138@4666: #ifndef SHIP_H peter1138@4666: #define SHIP_H peter1138@4666: tron@3962: #include "vehicle.h" tron@3962: bjarni@5783: void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2); bjarni@4638: void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); bjarni@4725: void RecalcShipStuff(Vehicle *v); bjarni@5972: void GetShipSpriteSize(EngineID engine, uint &width, uint &height); tron@3962: tron@3962: static inline bool IsShipInDepot(const Vehicle* v) tron@3962: { rubidium@6259: assert(v->type == VEH_SHIP); tron@3962: return v->u.ship.state == 0x80; tron@3962: } tron@3962: tron@3962: static inline bool IsShipInDepotStopped(const Vehicle* v) tron@3962: { tron@3962: return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; tron@3962: } peter1138@4666: peter1138@4666: #endif /* SHIP_H */