equal
deleted
inserted
replaced
294 void UpdateDeltaXY(Direction direction); |
294 void UpdateDeltaXY(Direction direction); |
295 ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; } |
295 ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; } |
296 WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; } |
296 WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; } |
297 void PlayLeaveStationSound() const; |
297 void PlayLeaveStationSound() const; |
298 bool IsPrimaryVehicle() const { return IsFrontEngine(this); } |
298 bool IsPrimaryVehicle() const { return IsFrontEngine(this); } |
299 int GetImage(Direction direction) const; |
299 SpriteID GetImage(Direction direction) const; |
300 int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; } |
300 int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; } |
301 int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; } |
301 int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; } |
302 Money GetRunningCost() const; |
302 Money GetRunningCost() const; |
303 bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; } |
303 bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; } |
304 bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; } |
304 bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; } |