src/ai/api/ai_cargo.hpp
branchnoai
changeset 9529 5f26f4bc574b
parent 9526 a4ad60ba03be
child 9530 5b93bc87cc5e
equal deleted inserted replaced
9528:b2cc6f31363c 9529:5f26f4bc574b
    10 /**
    10 /**
    11  * Class that handles all cargo related functions.
    11  * Class that handles all cargo related functions.
    12  */
    12  */
    13 class AICargo : public AIObject {
    13 class AICargo : public AIObject {
    14 public:
    14 public:
       
    15 	/**
       
    16 	 * The name of the class, needed by several sub-processes.
       
    17 	 */
       
    18 	static const char *GetClassName() { return "AICargo"; }
       
    19 
    15 	/**
    20 	/**
    16 	 * Checks whether the given cargo type is valid.
    21 	 * Checks whether the given cargo type is valid.
    17 	 * @param cargo_type the cargo to check.
    22 	 * @param cargo_type the cargo to check.
    18 	 * @return true if and only if the cargo type is valid.
    23 	 * @return true if and only if the cargo type is valid.
    19 	 */
    24 	 */