1
/* $Id: ai_industrylist.hpp 15060 2009-01-13 15:44:36Z smatz $ */
3
/** @file ai_industrylist.hpp List all the industries. */
5
#ifndef AI_INDUSTRYLIST_HPP
6
#define AI_INDUSTRYLIST_HPP
8
#include "ai_abstractlist.hpp"
11
* Creates a list of industries that are currently on the map.
14
class AIIndustryList : public AIAbstractList {
16
static const char *GetClassName() { return "AIIndustryList"; }
21
* Creates a list of industries that accepts a given cargo.
24
class AIIndustryList_CargoAccepting : public AIAbstractList {
26
static const char *GetClassName() { return "AIIndustryList_CargoAccepting"; }
29
* @param cargo_id The cargo this industry should accept.
31
AIIndustryList_CargoAccepting(CargoID cargo_id);
35
* Creates a list of industries that can produce a given cargo.
36
* @note It also contains industries that currently produces 0 units of the cargo.
39
class AIIndustryList_CargoProducing : public AIAbstractList {
41
static const char *GetClassName() { return "AIIndustryList_CargoProducing"; }
44
* @param cargo_id The cargo this industry should produce.
46
AIIndustryList_CargoProducing(CargoID cargo_id);
49
#endif /* AI_INDUSTRYLIST_HPP */