1 /* $Id: script_industrylist.hpp 23614 2011-12-19 20:57:23Z truebrain $ */
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
10 /** @file script_industrylist.hpp List all the industries. */
12 #ifndef SCRIPT_INDUSTRYLIST_HPP
13 #define SCRIPT_INDUSTRYLIST_HPP
15 #include "script_list.hpp"
18 * Creates a list of industries that are currently on the map.
22 class ScriptIndustryList
: public ScriptList
{
28 * Creates a list of industries that accepts a given cargo.
32 class ScriptIndustryList_CargoAccepting
: public ScriptList
{
35 * @param cargo_id The cargo this industry should accept.
37 ScriptIndustryList_CargoAccepting(CargoID cargo_id
);
41 * Creates a list of industries that can produce a given cargo.
42 * @note It also contains industries that currently produces 0 units of the cargo.
46 class ScriptIndustryList_CargoProducing
: public ScriptList
{
49 * @param cargo_id The cargo this industry should produce.
51 ScriptIndustryList_CargoProducing(CargoID cargo_id
);
54 #endif /* SCRIPT_INDUSTRYLIST_HPP */