summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_waypoint.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-02 16:47:32 +0000
committeryexo <yexo@openttd.org>2010-01-02 16:47:32 +0000
commitd8bcda3b94840a7b3d274ff33e855911ce517e3f (patch)
treef3e3e4f633fa879a97a06a690ee8a35d0b4a86fe /src/ai/api/ai_waypoint.hpp
parent43a5a4bee8b2121c713782b8f5f1136cbf5e5b53 (diff)
downloadopenttd-d8bcda3b94840a7b3d274ff33e855911ce517e3f.tar.xz
(svn r18691) -Change [NoAI]: cleanup some errors messages and add a few to AIWaypoint
Diffstat (limited to 'src/ai/api/ai_waypoint.hpp')
-rw-r--r--src/ai/api/ai_waypoint.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ai/api/ai_waypoint.hpp b/src/ai/api/ai_waypoint.hpp
index 73677df24..a781a0ba9 100644
--- a/src/ai/api/ai_waypoint.hpp
+++ b/src/ai/api/ai_waypoint.hpp
@@ -24,6 +24,20 @@ public:
static const char *GetClassName() { return "AIWaypoint"; }
/**
+ * All waypoint related error messages.
+ */
+ enum ErrorMessages {
+ /** Base for waypoint related errors */
+ ERR_WAYPOINT_BASE = AIError::ERR_CAT_WAYPOINT << AIError::ERR_CAT_BIT_SIZE,
+
+ /** The waypoint is build too close to another waypoint */
+ ERR_WAYPOINT_TOO_CLOSE_TO_ANOTHER_WAYPOINT, // [STR_ERROR_TOO_CLOSE_TO_ANOTHER_WAYPOINT]
+
+ /** The waypoint would join more then one existing waypoint together. */
+ ERR_WAYPOINT_ADJOINS_MULTIPLE_WAYPOINTS, // [STR_ERROR_WAYPOINT_ADJOINS_MORE_THAN_ONE_EXISTING]
+ };
+
+ /**
* Checks whether the given waypoint is valid and owned by you.
* @param waypoint_id The waypoint to check.
* @return True if and only if the waypoint is valid.