2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
8 /** @file script_cargolist.hpp List all the cargoes. */
10 #ifndef SCRIPT_CARGOLIST_HPP
11 #define SCRIPT_CARGOLIST_HPP
13 #include "script_list.hpp"
16 * Creates a list of cargoes that can be produced in the current game.
20 class ScriptCargoList
: public ScriptList
{
26 * Creates a list of cargoes that the given industry accepts.
27 * @note This list also includes cargoes that are temporarily not accepted
28 * by this industry, @see ScriptIndustry::IsCargoAccepted.
32 class ScriptCargoList_IndustryAccepting
: public ScriptList
{
35 * @param industry_id The industry to get the list of cargoes it accepts from.
37 ScriptCargoList_IndustryAccepting(IndustryID industry_id
);
41 * Creates a list of cargoes that the given industry can produce.
45 class ScriptCargoList_IndustryProducing
: public ScriptList
{
48 * @param industry_id The industry to get the list of cargoes it produces from.
50 ScriptCargoList_IndustryProducing(IndustryID industry_id
);
54 * Creates a list of cargoes that the given station accepts.
58 class ScriptCargoList_StationAccepting
: public ScriptList
{
61 * @param station_id The station to get the list of cargoes it accepts from.
63 ScriptCargoList_StationAccepting(StationID station_id
);
66 #endif /* SCRIPT_CARGOLIST_HPP */