* Get preview running cost string for an engine. * @param e Engine. * @returns Formatted string of running cost. */
| 171 | * @returns Formatted string of running cost. |
| 172 | */ |
| 173 | static std::string GetPreviewRunningCostString(const Engine &e) |
| 174 | { |
| 175 | return GetString(TimerGameEconomy::UsingWallclockUnits() ? STR_ENGINE_PREVIEW_RUNCOST_PERIOD : STR_ENGINE_PREVIEW_RUNCOST_YEAR, e.GetRunningCost()); |
| 176 | } |
| 177 | |
| 178 | static std::string GetTrainEngineInfoString(const Engine &e) |
| 179 | { |
no test coverage detected