* Retrieves the engine of the vehicle. * @return Engine of the vehicle. * @pre HasEngineType() == true */
| 716 | * @pre HasEngineType() == true |
| 717 | */ |
| 718 | const Engine *Vehicle::GetEngine() const |
| 719 | { |
| 720 | return Engine::Get(this->engine_type); |
| 721 | } |
| 722 | |
| 723 | /** |
| 724 | * Retrieve the NewGRF the vehicle is tied to. |
no outgoing calls
no test coverage detected