src/ship.h
changeset 8963 4b41ed1df7e5
parent 8707 55835d8fbfcd
child 9282 2bb9703aeb39
equal deleted inserted replaced
8962:769b0c4cee15 8963:4b41ed1df7e5
    39 	int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
    39 	int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
    40 	int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
    40 	int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
    41 	Money GetRunningCost() const { return ShipVehInfo(this->engine_type)->running_cost * _price.ship_running; }
    41 	Money GetRunningCost() const { return ShipVehInfo(this->engine_type)->running_cost * _price.ship_running; }
    42 	bool IsInDepot() const { return this->u.ship.state == 0x80; }
    42 	bool IsInDepot() const { return this->u.ship.state == 0x80; }
    43 	void Tick();
    43 	void Tick();
       
    44 	void OnNewDay();
    44 };
    45 };
    45 
    46 
    46 #endif /* SHIP_H */
    47 #endif /* SHIP_H */