src/ai/api/ai_cargo.cpp
branchnoai
changeset 9497 f6678533ccba
parent 9472 063c3f50972a
child 9723 eee46cb39750
equal deleted inserted replaced
9496:05ebee9884b3 9497:f6678533ccba
     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)