static */
| 144 | } |
| 145 | |
| 146 | /* static */ SQInteger ScriptEngine::GetPower(EngineID engine_id) |
| 147 | { |
| 148 | if (!IsValidEngine(engine_id)) return -1; |
| 149 | if (GetVehicleType(engine_id) != ScriptVehicle::VT_RAIL && GetVehicleType(engine_id) != ScriptVehicle::VT_ROAD) return -1; |
| 150 | if (IsWagon(engine_id)) return -1; |
| 151 | |
| 152 | return ::Engine::Get(engine_id)->GetPower(); |
| 153 | } |
| 154 | |
| 155 | /* static */ SQInteger ScriptEngine::GetWeight(EngineID engine_id) |
| 156 | { |