equal
deleted
inserted
replaced
5 #include "ai_cargo.hpp" |
5 #include "ai_cargo.hpp" |
6 #include "../../cargotype.h" |
6 #include "../../cargotype.h" |
7 #include "../../player.h" // For economy.h |
7 #include "../../player.h" // For economy.h |
8 #include "../../economy.h" |
8 #include "../../economy.h" |
9 |
9 |
10 bool AICargo::IsValidCargo(CargoID cargo_type) |
10 /* static */ bool AICargo::IsValidCargo(CargoID cargo_type) |
11 { |
11 { |
12 return (cargo_type < NUM_CARGO && GetCargo(cargo_type)->IsValid()); |
12 return (cargo_type < NUM_CARGO && GetCargo(cargo_type)->IsValid()); |
13 } |
13 } |
14 |
14 |
15 char *AICargo::GetCargoLabel(CargoID cargo_type) |
15 char *AICargo::GetCargoLabel(CargoID cargo_type) |