author | rubidium |
Sun, 06 Apr 2008 12:26:40 +0000 | |
branch | noai |
changeset 9867 | b7d9ffe24f81 |
parent 9829 | 80fbe02a4184 |
permissions | -rw-r--r-- |
9649
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
2 |
|
9829
80fbe02a4184
(svn r12491) [NoAI] -Documentation: made parts of the comments more uniform (@file header and class header)
truebrain
parents:
9816
diff
changeset
|
3 |
/** @file ai_industrylist.hpp List all the industries. */ |
9649
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
4 |
|
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
5 |
#ifndef AI_INDUSTRYLIST_HPP |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
6 |
#define AI_INDUSTRYLIST_HPP |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
7 |
|
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
8 |
#include "ai_abstractlist.hpp" |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
9 |
|
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
10 |
/** |
9778
38560cd27070
(svn r12273) [NoAI] -Documentation: big change of many list-related comments. It is now more readable, more explaining, and all unneeded things (API-wise) are removed
truebrain
parents:
9776
diff
changeset
|
11 |
* Creates a list of industries that are currently on the map. |
9829
80fbe02a4184
(svn r12491) [NoAI] -Documentation: made parts of the comments more uniform (@file header and class header)
truebrain
parents:
9816
diff
changeset
|
12 |
* @ingroup AIList |
9649
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
13 |
*/ |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
14 |
class AIIndustryList : public AIAbstractList { |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
15 |
public: |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
16 |
static const char *GetClassName() { return "AIIndustryList"; } |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
17 |
AIIndustryList(); |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
18 |
}; |
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
19 |
|
9776
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
20 |
/** |
9778
38560cd27070
(svn r12273) [NoAI] -Documentation: big change of many list-related comments. It is now more readable, more explaining, and all unneeded things (API-wise) are removed
truebrain
parents:
9776
diff
changeset
|
21 |
* Creates a list of industries that accepts a given cargo. |
9829
80fbe02a4184
(svn r12491) [NoAI] -Documentation: made parts of the comments more uniform (@file header and class header)
truebrain
parents:
9816
diff
changeset
|
22 |
* @ingroup AIList |
9776
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
23 |
*/ |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
24 |
class AIIndustryList_CargoAccepting : public AIAbstractList { |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
25 |
public: |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
26 |
static const char *GetClassName() { return "AIIndustryList_CargoAccepting"; } |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
27 |
|
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
28 |
/** |
9778
38560cd27070
(svn r12273) [NoAI] -Documentation: big change of many list-related comments. It is now more readable, more explaining, and all unneeded things (API-wise) are removed
truebrain
parents:
9776
diff
changeset
|
29 |
* @param cargo_id The cargo this industry should accept. |
9776
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
30 |
*/ |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
31 |
AIIndustryList_CargoAccepting(CargoID cargo_id); |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
32 |
}; |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
33 |
|
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
34 |
/** |
9797
5bb54b2a6f6f
(svn r12301) [NoAI] -Fix: clearify the behavoir of AIIndustryList_CargoProducing (Progman)
truebrain
parents:
9778
diff
changeset
|
35 |
* Creates a list of industries that can produce a given cargo. |
5bb54b2a6f6f
(svn r12301) [NoAI] -Fix: clearify the behavoir of AIIndustryList_CargoProducing (Progman)
truebrain
parents:
9778
diff
changeset
|
36 |
* @note It also contains industries that currently produces 0 units of the cargo. |
9829
80fbe02a4184
(svn r12491) [NoAI] -Documentation: made parts of the comments more uniform (@file header and class header)
truebrain
parents:
9816
diff
changeset
|
37 |
* @ingroup AIList |
9776
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
38 |
*/ |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
39 |
class AIIndustryList_CargoProducing : public AIAbstractList { |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
40 |
public: |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
41 |
static const char *GetClassName() { return "AIIndustryList_CargoProducing"; } |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
42 |
|
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
43 |
/** |
9778
38560cd27070
(svn r12273) [NoAI] -Documentation: big change of many list-related comments. It is now more readable, more explaining, and all unneeded things (API-wise) are removed
truebrain
parents:
9776
diff
changeset
|
44 |
* @param cargo_id The cargo this industry should produce. |
9776
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
45 |
*/ |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
46 |
AIIndustryList_CargoProducing(CargoID cargo_id); |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
47 |
}; |
ee9923d46fba
(svn r12270) [NoAI] -Add: added AIIndustryList_CargoAccepting and AIIndustryList_CargoProducing, which gives you Industry Lists with from where to where you can move cargo
truebrain
parents:
9772
diff
changeset
|
48 |
|
9649
bc8c06513f5b
(svn r10544) [NoAI] -Add: added AIIndustryList to list industries
truelight
parents:
diff
changeset
|
49 |
#endif /* AI_INDUSTRYLIST_HPP */ |