| 272 | } |
| 273 | |
| 274 | static std::string GetShipEngineInfoString(const Engine &e) |
| 275 | { |
| 276 | std::stringstream res; |
| 277 | |
| 278 | res << GetString(STR_ENGINE_PREVIEW_COST_MAX_SPEED, e.GetCost(), PackVelocity(e.GetDisplayMaxSpeed(), e.type)); |
| 279 | res << '\n'; |
| 280 | |
| 281 | res << GetPreviewRunningCostString(e); |
| 282 | res << '\n'; |
| 283 | |
| 284 | res << GetString(STR_ENGINE_PREVIEW_CAPACITY, e.GetDefaultCargoType(), e.GetDisplayDefaultCapacity()); |
| 285 | |
| 286 | return res.str(); |
| 287 | } |
| 288 | |
| 289 | |
| 290 | /** |
no test coverage detected