diff options
author | yexo <yexo@openttd.org> | 2009-02-19 07:40:08 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-19 07:40:08 +0000 |
commit | c0e7ddeb9ee8892103a1314dac25e0d7250e6af4 (patch) | |
tree | fa0d25f1d5a2c7fdfd64122bd10dc5ee7291d2fe /src/ai/api/ai_waypointlist.hpp | |
parent | c2d9c85c0fbb26b5db2ef20b7ac610e63de2b46b (diff) | |
download | openttd-c0e7ddeb9ee8892103a1314dac25e0d7250e6af4.tar.xz |
(svn r15519) -Add [NoAI]: support for waypoints by adding AIRail::Build/Remove RailWaypoint, AIWaypoint and AIWaypointList.
Diffstat (limited to 'src/ai/api/ai_waypointlist.hpp')
-rw-r--r-- | src/ai/api/ai_waypointlist.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ai/api/ai_waypointlist.hpp b/src/ai/api/ai_waypointlist.hpp new file mode 100644 index 000000000..7b67f5382 --- /dev/null +++ b/src/ai/api/ai_waypointlist.hpp @@ -0,0 +1,35 @@ +/* $Id$ */ + +/** @file ai_waypointlist.hpp List all the waypoints (you own). */ + +#ifndef AI_WAYPOINTLIST_HPP +#define AI_WAYPOINTLIST_HPP + +#include "ai_abstractlist.hpp" + +/** + * Creates a list of waypoints of which you are the owner. + * @ingroup AIList + */ +class AIWaypointList : public AIAbstractList { +public: + static const char *GetClassName() { return "AIWaypointList"; } + + AIWaypointList(); +}; + +/** + * Creates a list of waypoints which the vehicle has in its orders. + * @ingroup AIList + */ +class AIWaypointList_Vehicle : public AIAbstractList { +public: + static const char *GetClassName() { return "AIWaypointList_Vehicle"; } + + /** + * @param vehicle_id The vehicle to get the list of waypoints he has in its orders from. + */ + AIWaypointList_Vehicle(VehicleID vehicle_id); +}; + +#endif /* AI_WAYPOINTLIST_HPP */ |