ai_waypoint.hpp

Go to the documentation of this file.
00001 /* $Id: ai_waypoint.hpp 16511 2009-06-03 18:55:45Z 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 
00021   enum SpecialWaypointIDs {
00022     WAYPOINT_INVALID = 0xFFFF, 
00023   };
00024 
00030   static bool IsValidWaypoint(WaypointID waypoint_id);
00031 
00038   static WaypointID GetWaypointID(TileIndex tile);
00039 
00046   static char *GetName(WaypointID waypoint_id);
00047 
00058   static bool SetName(WaypointID waypoint_id, const char *name);
00059 
00066   static TileIndex GetLocation(WaypointID waypoint_id);
00067 };
00068 
00069 #endif /* AI_WAYPOINT_HPP */

Generated on Mon Jun 8 23:04:02 2009 for OpenTTD by  doxygen 1.5.6