src/train.h
changeset 7533 787277cc0908
parent 7527 a1d3a14ae669
child 7548 3a679b6e8b30
equal deleted inserted replaced
7532:c3fb6bc6ddd4 7533:787277cc0908
   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 	bool HasFront() const { return true; }
   299 	bool HasFront() const { return true; }
   300 	int GetImage(Direction direction) const;
   300 	int GetImage(Direction direction) const;
   301 	int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; }
   301 	int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; }
   302 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
   302 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
   303 	Money GetRunningCost() const;
   303 	Money GetRunningCost() const;
   304 	bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }
   304 	bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }
   305 	bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; }
   305 	bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; }
   306 	void Tick();
   306 	void Tick();