diff options
author | yexo <yexo@openttd.org> | 2011-11-08 15:44:53 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-11-08 15:44:53 +0000 |
commit | baf11cf401bd58646b1ade9fc3ac1353a7c1e925 (patch) | |
tree | db368dcc3293b42b8e582bbbe32b4a49f5c23961 /src/ai/api/ai_cargolist.hpp | |
parent | b1d49f72dcd510d18b179f7aba3f81e1cb20637c (diff) | |
download | openttd-baf11cf401bd58646b1ade9fc3ac1353a7c1e925.tar.xz |
(svn r23134) -Add [FS#3799]: [NoAI] AICargoList_StationAccepting
Diffstat (limited to 'src/ai/api/ai_cargolist.hpp')
-rw-r--r-- | src/ai/api/ai_cargolist.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ai/api/ai_cargolist.hpp b/src/ai/api/ai_cargolist.hpp index f4449466b..0efd72ae2 100644 --- a/src/ai/api/ai_cargolist.hpp +++ b/src/ai/api/ai_cargolist.hpp @@ -57,4 +57,19 @@ public: AICargoList_IndustryProducing(IndustryID industry_id); }; +/** + * Creates a list of cargos that the given station accepts. + * @ingroup AIList + */ +class AICargoList_StationAccepting : public AIList { +public: + /** Get the name of this class to identify it towards squirrel. */ + static const char *GetClassName() { return "AICargoList_StationAccepting"; } + + /** + * @param station_id The station to get the list of cargos it accepts from. + */ + AICargoList_StationAccepting(StationID station_id); +}; + #endif /* AI_CARGOLIST_HPP */ |