src/ai/api/ai_town.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 town related functions.
    11  * Class that handles all town related functions.
    12  */
    12  */
    13 class AITown : public AIObject {
    13 class AITown : 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 "AITown"; }
       
    19 
    15 	/**
    20 	/**
    16 	 * Gets the maximum town index; there are no valid towns with a higher index.
    21 	 * Gets the maximum town index; there are no valid towns with a higher index.
    17 	 * @return the maximum town index.
    22 	 * @return the maximum town index.
    18 	 * @post return value is always non-negative.
    23 	 * @post return value is always non-negative.
    19 	 */
    24 	 */