(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
This commit is contained in:
@@ -35,7 +35,7 @@ struct Ship: public Vehicle {
|
||||
WindowClass GetVehicleListWindowClass() const { return WC_SHIPS_LIST; }
|
||||
void PlayLeaveStationSound() const;
|
||||
bool IsPrimaryVehicle() const { return true; }
|
||||
int GetImage(Direction direction) const;
|
||||
SpriteID GetImage(Direction direction) const;
|
||||
int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
|
||||
int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
|
||||
Money GetRunningCost() const { return ShipVehInfo(this->engine_type)->running_cost * _price.ship_running; }
|
||||
|
Reference in New Issue
Block a user