src/ai/api/ai_vehiclelist.hpp
author truelight
Fri, 13 Jul 2007 11:04:00 +0000
branchnoai
changeset 9647 c17046b1b8a2
parent 9632 1816329e9cdd
child 9740 a98f20bce404
permissions -rw-r--r--
(svn r10540) [NoAI] -Add: added AIStationVehicleList, which lists all vehicles that go to a given station
/* $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);
};

#endif /* AI_VEHICLELIST_HPP */