src/train.h
changeset 7488 6f51ddf4c225
parent 7484 7734e4119e70
child 7490 bb27d92565d3
equal deleted inserted replaced
7487:0a3ff8c6ed75 7488:6f51ddf4c225
   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 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
       
   277 	Money GetRunningCost() const;
   277 	void Tick();
   278 	void Tick();
   278 };
   279 };
   279 
   280 
   280 #endif /* TRAIN_H */
   281 #endif /* TRAIN_H */