src/train.h
changeset 7980 9b12784cc39c
parent 7974 6fcdebd75c19
child 7984 c539c9368e3c
equal deleted inserted replaced
7979:f0a24809ca93 7980:9b12784cc39c
   271 	void PlayLeaveStationSound() const;
   271 	void PlayLeaveStationSound() const;
   272 	bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
   272 	bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
   273 	bool HasFront() const { return true; }
   273 	bool HasFront() const { return true; }
   274 	int GetImage(Direction direction) const;
   274 	int GetImage(Direction direction) const;
   275 	int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; }
   275 	int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; }
       
   276 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
   276 	void Tick();
   277 	void Tick();
   277 };
   278 };
   278 
   279 
   279 #endif /* TRAIN_H */
   280 #endif /* TRAIN_H */