2009-01-12 18:11:45 +01:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2009-01-12 18:11:45 +01:00
|
|
|
/** @file ai_industrylist.hpp List all the industries. */
|
|
|
|
|
|
|
|
#ifndef AI_INDUSTRYLIST_HPP
|
|
|
|
#define AI_INDUSTRYLIST_HPP
|
|
|
|
|
2010-08-19 17:37:28 +02:00
|
|
|
#include "ai_list.hpp"
|
2009-01-12 18:11:45 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a list of industries that are currently on the map.
|
|
|
|
* @ingroup AIList
|
|
|
|
*/
|
2010-08-19 17:37:28 +02:00
|
|
|
class AIIndustryList : public AIList {
|
2009-01-12 18:11:45 +01:00
|
|
|
public:
|
|
|
|
AIIndustryList();
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a list of industries that accepts a given cargo.
|
|
|
|
* @ingroup AIList
|
|
|
|
*/
|
2010-08-19 17:37:28 +02:00
|
|
|
class AIIndustryList_CargoAccepting : public AIList {
|
2009-01-12 18:11:45 +01:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* @param cargo_id The cargo this industry should accept.
|
|
|
|
*/
|
|
|
|
AIIndustryList_CargoAccepting(CargoID cargo_id);
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a list of industries that can produce a given cargo.
|
|
|
|
* @note It also contains industries that currently produces 0 units of the cargo.
|
|
|
|
* @ingroup AIList
|
|
|
|
*/
|
2010-08-19 17:37:28 +02:00
|
|
|
class AIIndustryList_CargoProducing : public AIList {
|
2009-01-12 18:11:45 +01:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* @param cargo_id The cargo this industry should produce.
|
|
|
|
*/
|
|
|
|
AIIndustryList_CargoProducing(CargoID cargo_id);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* AI_INDUSTRYLIST_HPP */
|