src/ai/api/ai_cargo.cpp
branchnoai
changeset 9723 eee46cb39750
parent 9497 f6678533ccba
child 9724 b39bc69bb2f2
equal deleted inserted replaced
9722:ebf0ece7d8f6 9723:eee46cb39750
     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 }