~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/ai/api/ai_vehiclelist.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: ai_vehiclelist.hpp 15614 2009-03-04 22:37:25Z yexo $ */
 
2
 
 
3
/** @file ai_vehiclelist.hpp List all the vehicles (you own). */
 
4
 
 
5
#ifndef AI_VEHICLELIST_HPP
 
6
#define AI_VEHICLELIST_HPP
 
7
 
 
8
#include "ai_abstractlist.hpp"
 
9
#include "ai_vehicle.hpp"
 
10
 
 
11
/**
 
12
 * Creates a list of vehicles of which you are the owner.
 
13
 * @ingroup AIList
 
14
 */
 
15
class AIVehicleList : public AIAbstractList {
 
16
public:
 
17
        static const char *GetClassName() { return "AIVehicleList"; }
 
18
        AIVehicleList();
 
19
};
 
20
 
 
21
/**
 
22
 * Creates a list of vehicles that have orders to a given station.
 
23
 * @ingroup AIList
 
24
 */
 
25
class AIVehicleList_Station : public AIAbstractList {
 
26
public:
 
27
        static const char *GetClassName() { return "AIVehicleList_Station"; }
 
28
 
 
29
        /**
 
30
         * @param station_id The station to get the list of vehicles that have orders to him from.
 
31
         */
 
32
        AIVehicleList_Station(StationID station_id);
 
33
};
 
34
 
 
35
/**
 
36
 * Creates a list of vehicles that share orders.
 
37
 * @ingroup AIList
 
38
 */
 
39
class AIVehicleList_SharedOrders : public AIAbstractList {
 
40
public:
 
41
        static const char *GetClassName() { return "AIVehicleList_SharedOrders"; }
 
42
 
 
43
        /**
 
44
         * @param station_id The vehicle that the rest shared orders with.
 
45
         */
 
46
        AIVehicleList_SharedOrders(VehicleID vehicle_id);
 
47
};
 
48
 
 
49
/**
 
50
 * Creates a list of vehicles that are in a group.
 
51
 * @ingroup AIList
 
52
 */
 
53
class AIVehicleList_Group : public AIAbstractList {
 
54
public:
 
55
        static const char *GetClassName() { return "AIVehicleList_Group"; }
 
56
 
 
57
        /**
 
58
         * @param group_id The ID of the group the vehicles are in.
 
59
         */
 
60
        AIVehicleList_Group(GroupID group_id);
 
61
};
 
62
 
 
63
/**
 
64
 * Creates a list of vehicles that are in the default group.
 
65
 * @ingroup AIList
 
66
 */
 
67
class AIVehicleList_DefaultGroup : public AIAbstractList {
 
68
public:
 
69
        static const char *GetClassName() { return "AIVehicleList_DefaultGroup"; }
 
70
 
 
71
        /**
 
72
         * @param vehicle_type The VehicleType to get the list of vehicles for.
 
73
         */
 
74
        AIVehicleList_DefaultGroup(AIVehicle::VehicleType vehicle_type);
 
75
};
 
76
 
 
77
#endif /* AI_VEHICLELIST_HPP */