static */
| 161 | } |
| 162 | |
| 163 | /* static */ SQInteger ScriptEngine::GetMaxTractiveEffort(EngineID engine_id) |
| 164 | { |
| 165 | if (!IsValidEngine(engine_id)) return -1; |
| 166 | if (GetVehicleType(engine_id) != ScriptVehicle::VT_RAIL && GetVehicleType(engine_id) != ScriptVehicle::VT_ROAD) return -1; |
| 167 | if (IsWagon(engine_id)) return -1; |
| 168 | |
| 169 | return ::Engine::Get(engine_id)->GetDisplayMaxTractiveEffort() / 1000; |
| 170 | } |
| 171 | |
| 172 | /* static */ ScriptDate::Date ScriptEngine::GetDesignDate(EngineID engine_id) |
| 173 | { |
nothing calls this directly
no test coverage detected