equal
deleted
inserted
replaced
3 /** @file ai_cargo.cpp handles the query-related of the AICargo class */ |
3 /** @file ai_cargo.cpp handles the query-related of the AICargo class */ |
4 |
4 |
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_func.h" |
|
9 #include "../../core/alloc_func.hpp" |
9 |
10 |
10 /* static */ bool AICargo::IsValidCargo(CargoID cargo_type) |
11 /* static */ bool AICargo::IsValidCargo(CargoID cargo_type) |
11 { |
12 { |
12 return (cargo_type < NUM_CARGO && GetCargo(cargo_type)->IsValid()); |
13 return (cargo_type < NUM_CARGO && GetCargo(cargo_type)->IsValid()); |
13 } |
14 } |