src/ship.h
changeset 5972 59953719a3ff
parent 5783 e207986ffe71
child 6259 471b91a4b1d8
equal deleted inserted replaced
5971:b21fda7c7f1e 5972:59953719a3ff
     6 #include "vehicle.h"
     6 #include "vehicle.h"
     7 
     7 
     8 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
     8 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
     9 void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
     9 void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
    10 void RecalcShipStuff(Vehicle *v);
    10 void RecalcShipStuff(Vehicle *v);
       
    11 void GetShipSpriteSize(EngineID engine, uint &width, uint &height);
    11 
    12 
    12 static inline bool IsShipInDepot(const Vehicle* v)
    13 static inline bool IsShipInDepot(const Vehicle* v)
    13 {
    14 {
    14 	assert(v->type == VEH_Ship);
    15 	assert(v->type == VEH_Ship);
    15 	return v->u.ship.state == 0x80;
    16 	return v->u.ship.state == 0x80;