2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file script_waypointlist.hpp List all the waypoints (you own). */
10 #ifndef SCRIPT_WAYPOINTLIST_HPP
11 #define SCRIPT_WAYPOINTLIST_HPP
13 #include "script_list.hpp"
14 #include "script_waypoint.hpp"
17 * Creates a list of waypoints of which you are the owner.
21 class ScriptWaypointList
: public ScriptList
{
24 * @param waypoint_type The type of waypoint to make a list of waypoints for.
26 ScriptWaypointList(ScriptWaypoint::WaypointType waypoint_type
);
30 * Creates a list of waypoints which the vehicle has in its orders.
34 class ScriptWaypointList_Vehicle
: public ScriptList
{
37 * Get the waypoints from the orders of the given vehicle. Duplicates are
38 * not added. Waypoints are added in the order of the vehicle's orders.
39 * @param vehicle_id The vehicle to get the list of waypoints for.
41 ScriptWaypointList_Vehicle(VehicleID vehicle_id
);
44 #endif /* SCRIPT_WAYPOINTLIST_HPP */