src/ship.h
branchnoai
changeset 9694 e72987579514
parent 9631 8a2d1c2ceb88
child 9701 d1ac22c62f64
equal deleted inserted replaced
9693:31fcaa5375a1 9694:e72987579514
    10 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
    10 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
    11 void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
    11 void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);
    12 void RecalcShipStuff(Vehicle *v);
    12 void RecalcShipStuff(Vehicle *v);
    13 void GetShipSpriteSize(EngineID engine, uint &width, uint &height);
    13 void GetShipSpriteSize(EngineID engine, uint &width, uint &height);
    14 
    14 
    15 static inline bool IsShipInDepot(const Vehicle* v)
    15 static inline bool IsShipInDepot(const Vehicle *v)
    16 {
    16 {
    17 	assert(v->type == VEH_SHIP);
    17 	assert(v->type == VEH_SHIP);
    18 	return v->u.ship.state == 0x80;
    18 	return v->u.ship.state == 0x80;
    19 }
    19 }
    20 
    20 
    21 static inline bool IsShipInDepotStopped(const Vehicle* v)
    21 static inline bool IsShipInDepotStopped(const Vehicle *v)
    22 {
    22 {
    23 	return IsShipInDepot(v) && v->vehstatus & VS_STOPPED;
    23 	return IsShipInDepot(v) && v->vehstatus & VS_STOPPED;
    24 }
    24 }
    25 
    25 
    26 
    26