src/ai/api/ai_station.hpp
branchnoai
changeset 9866 efc38e1f559a
parent 9838 0839682a601b
child 9873 b1ab23560ecb
equal deleted inserted replaced
9865:f241472f09dc 9866:efc38e1f559a
     4 
     4 
     5 #ifndef AI_STATION_HPP
     5 #ifndef AI_STATION_HPP
     6 #define AI_STATION_HPP
     6 #define AI_STATION_HPP
     7 
     7 
     8 #include "ai_object.hpp"
     8 #include "ai_object.hpp"
       
     9 #include "ai_error.hpp"
     9 #include "../../station_type.h"
    10 #include "../../station_type.h"
    10 
    11 
    11 /**
    12 /**
    12  * Class that handles all station related functions.
    13  * Class that handles all station related functions.
    13  */
    14  */
    14 class AIStation : public AIObject {
    15 class AIStation : public AIObject {
    15 public:
    16 public:
    16 	static const char *GetClassName() { return "AIStation"; }
    17 	static const char *GetClassName() { return "AIStation"; }
       
    18 
       
    19 	/**
       
    20 	 * All station related errors.
       
    21 	 */
       
    22 	enum ErrorMessages {
       
    23 		/** Base for station related errors */
       
    24 		ERR_STATION_BASE = AIError::ERR_CAT_STATION << AIError::ERR_CAT_BIT_SIZE,
       
    25 
       
    26 		/** The station size exceeds the station spread */
       
    27 		ERR_STATION_TOO_LARGE,                  // [STR_306C_STATION_TOO_SPREAD_OUT]
       
    28 
       
    29 		/** The station is build too close to another station */
       
    30 		ERR_STATION_TOO_CLOSE_TO_OTHER_STATION, // [STR_300D_TOO_CLOSE_TO_ANOTHER_AIRPORT, STR_3009_TOO_CLOSE_TO_ANOTHER_STATION]
       
    31 	};
    17 
    32 
    18 	/**
    33 	/**
    19 	 * Type of stations known in the game.
    34 	 * Type of stations known in the game.
    20 	 */
    35 	 */
    21 	enum StationType {
    36 	enum StationType {