2009-02-19 08:40:08 +01:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2011-11-30 00:07:38 +01:00
|
|
|
/** @file script_waypointlist.hpp List all the waypoints (you own). */
|
2009-02-19 08:40:08 +01:00
|
|
|
|
2011-11-30 00:07:38 +01:00
|
|
|
#ifndef SCRIPT_WAYPOINTLIST_HPP
|
|
|
|
#define SCRIPT_WAYPOINTLIST_HPP
|
2009-02-19 08:40:08 +01:00
|
|
|
|
2011-11-30 00:07:38 +01:00
|
|
|
#include "script_list.hpp"
|
|
|
|
#include "script_waypoint.hpp"
|
2009-02-19 08:40:08 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a list of waypoints of which you are the owner.
|
2011-11-30 00:27:26 +01:00
|
|
|
* @api ai
|
2011-11-30 00:15:35 +01:00
|
|
|
* @ingroup ScriptList
|
2009-02-19 08:40:08 +01:00
|
|
|
*/
|
2011-11-30 00:15:35 +01:00
|
|
|
class ScriptWaypointList : public ScriptList {
|
2009-02-19 08:40:08 +01:00
|
|
|
public:
|
2010-01-04 20:42:29 +01:00
|
|
|
/**
|
|
|
|
* @param waypoint_type The type of waypoint to make a list of waypoints for.
|
|
|
|
*/
|
2011-11-30 00:15:35 +01:00
|
|
|
ScriptWaypointList(ScriptWaypoint::WaypointType waypoint_type);
|
2009-02-19 08:40:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a list of waypoints which the vehicle has in its orders.
|
2011-11-30 00:27:26 +01:00
|
|
|
* @api ai
|
2011-11-30 00:15:35 +01:00
|
|
|
* @ingroup ScriptList
|
2009-02-19 08:40:08 +01:00
|
|
|
*/
|
2011-11-30 00:15:35 +01:00
|
|
|
class ScriptWaypointList_Vehicle : public ScriptList {
|
2009-02-19 08:40:08 +01:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* @param vehicle_id The vehicle to get the list of waypoints he has in its orders from.
|
|
|
|
*/
|
2011-11-30 00:15:35 +01:00
|
|
|
ScriptWaypointList_Vehicle(VehicleID vehicle_id);
|
2009-02-19 08:40:08 +01:00
|
|
|
};
|
|
|
|
|
2011-11-30 00:07:38 +01:00
|
|
|
#endif /* SCRIPT_WAYPOINTLIST_HPP */
|