static */
| 240 | } |
| 241 | |
| 242 | /* static */ SQInteger ScriptTile::GetCargoProduction(TileIndex tile, CargoType cargo_type, SQInteger width, SQInteger height, SQInteger radius) |
| 243 | { |
| 244 | if (!::IsValidTile(tile) || width <= 0 || height <= 0 || radius < 0 || !ScriptCargo::IsValidCargo(cargo_type)) return -1; |
| 245 | |
| 246 | CargoArray produced = ::GetProductionAroundTiles(tile, width, height, _settings_game.station.modified_catchment ? radius : (int)CA_UNMODIFIED); |
| 247 | return produced[cargo_type]; |
| 248 | } |
| 249 | |
| 250 | /* static */ SQInteger ScriptTile::GetDistanceManhattanToTile(TileIndex tile_from, TileIndex tile_to) |
| 251 | { |
nothing calls this directly
no test coverage detected