diff options
author | frosch <frosch@openttd.org> | 2010-01-04 19:42:29 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-04 19:42:29 +0000 |
commit | 1ed599f5cf6a0dec14d91d5442a08560e254d35c (patch) | |
tree | 969762c9812a05d4cc85ffc522779bbc7667496a /src/ai/api/ai_waypointlist.hpp | |
parent | 27fc22a76bf470c2088a38d57d9cd2a8e481cafb (diff) | |
download | openttd-1ed599f5cf6a0dec14d91d5442a08560e254d35c.tar.xz |
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
-Change: [NoAI] Constructor of AIWaypoint now takes a WaypointType to also handle buoys.
-Remove: [NoAI] AIBuoyList.
Diffstat (limited to 'src/ai/api/ai_waypointlist.hpp')
-rw-r--r-- | src/ai/api/ai_waypointlist.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ai/api/ai_waypointlist.hpp b/src/ai/api/ai_waypointlist.hpp index 4bc11f8d7..e7c322ece 100644 --- a/src/ai/api/ai_waypointlist.hpp +++ b/src/ai/api/ai_waypointlist.hpp @@ -13,6 +13,7 @@ #define AI_WAYPOINTLIST_HPP #include "ai_abstractlist.hpp" +#include "ai_waypoint.hpp" /** * Creates a list of waypoints of which you are the owner. @@ -22,7 +23,10 @@ class AIWaypointList : public AIAbstractList { public: static const char *GetClassName() { return "AIWaypointList"; } - AIWaypointList(); + /** + * @param waypoint_type The type of waypoint to make a list of waypoints for. + */ + AIWaypointList(AIWaypoint::WaypointType waypoint_type); }; /** |