src/ai/api/ai_station.hpp
branchnoai
changeset 9866 efc38e1f559a
parent 9838 0839682a601b
child 9873 b1ab23560ecb
--- a/src/ai/api/ai_station.hpp	Thu Apr 03 23:01:54 2008 +0000
+++ b/src/ai/api/ai_station.hpp	Fri Apr 04 10:43:13 2008 +0000
@@ -6,6 +6,7 @@
 #define AI_STATION_HPP
 
 #include "ai_object.hpp"
+#include "ai_error.hpp"
 #include "../../station_type.h"
 
 /**
@@ -16,6 +17,20 @@
 	static const char *GetClassName() { return "AIStation"; }
 
 	/**
+	 * All station related errors.
+	 */
+	enum ErrorMessages {
+		/** Base for station related errors */
+		ERR_STATION_BASE = AIError::ERR_CAT_STATION << AIError::ERR_CAT_BIT_SIZE,
+
+		/** The station size exceeds the station spread */
+		ERR_STATION_TOO_LARGE,                  // [STR_306C_STATION_TOO_SPREAD_OUT]
+
+		/** The station is build too close to another station */
+		ERR_STATION_TOO_CLOSE_TO_OTHER_STATION, // [STR_300D_TOO_CLOSE_TO_ANOTHER_AIRPORT, STR_3009_TOO_CLOSE_TO_ANOTHER_STATION]
+	};
+
+	/**
 	 * Type of stations known in the game.
 	 */
 	enum StationType {