tron@3962: /* $Id$ */ tron@3962: peter1138@4666: #ifndef SHIP_H peter1138@4666: #define SHIP_H peter1138@4666: tron@3962: #include "vehicle.h" tron@3962: bjarni@4638: void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); bjarni@4725: void RecalcShipStuff(Vehicle *v); tron@3962: tron@3962: static inline bool IsShipInDepot(const Vehicle* v) tron@3962: { tron@3962: 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 */