src/ai/api/ai_vehiclelist.hpp
author truebrain
Sat, 23 Feb 2008 14:33:18 +0000
branchnoai
changeset 9740 a98f20bce404
parent 9647 c17046b1b8a2
child 9744 7297fcf46e03
permissions -rw-r--r--
(svn r12220) [NoAI] -Fix: minor type in AIVehicleStation, and missing security check
/* $Id$ */

/** @file ai_vehiclelist.hpp list all the vehicles (you own) */

#ifndef AI_VEHICLELIST_HPP
#define AI_VEHICLELIST_HPP

#include "ai_abstractlist.hpp"

/**
 * Class that creates a list of vehicles you own.
 */
class AIVehicleList : public AIAbstractList {
public:
	/**
	 * The name of the class, needed by several sub-processes.
	 */
	static const char *GetClassName() { return "AIVehicleList"; }

	/**
	 * The constructor to make a list of vehicles.
	 */
	AIVehicleList();
};

/**
 * Class that creates a list of vehicles that go to a given station.
 */
class AIStationVehicleList : public AIAbstractList {
public:
	/**
	 * The name of the class, needed by several sub-processes.
	 */
	static const char *GetClassName() { return "AIStationVehicleList"; }

	/**
	 * The constructor to make a list of vehicles that goes to this station.
	 * @param station The station to get the list of vehicles that go here from.
	 */
	AIStationVehicleList(StationID station_id);
};

#endif /* AI_VEHICLELIST_HPP */