ai_waypoint.hpp

Go to the documentation of this file.
00001 /* $Id: ai_waypoint.hpp 16246 2009-05-06 22:31:52Z rubidium $ */
00002 
00005 #ifndef AI_WAYPOINT_HPP
00006 #define AI_WAYPOINT_HPP
00007 
00008 #include "ai_object.hpp"
00009 #include "ai_error.hpp"
00010 
00014 class AIWaypoint : public AIObject {
00015 public:
00016   static const char *GetClassName() { return "AIWaypoint"; }
00017 
00018   enum SpecialWaypointIDs {
00019     WAYPOINT_INVALID = 0xFFFF, 
00020   };
00021 
00027   static bool IsValidWaypoint(WaypointID waypoint_id);
00028 
00035   static WaypointID GetWaypointID(TileIndex tile);
00036 
00043   static char *GetName(WaypointID waypoint_id);
00044 
00055   static bool SetName(WaypointID waypoint_id, const char *name);
00056 
00063   static TileIndex GetLocation(WaypointID waypoint_id);
00064 };
00065 
00066 #endif /* AI_WAYPOINT_HPP */

Generated on Mon May 11 15:48:02 2009 for OpenTTD by  doxygen 1.5.6