author | truebrain |
Thu, 28 Feb 2008 01:11:23 +0000 | |
branch | noai |
changeset 9803 | c86d5834fb11 |
parent 9778 | 38560cd27070 |
permissions | -rw-r--r-- |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
2 |
|
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:
9772
diff
changeset
|
3 |
/** @file ai_enginelist_valuator.hpp all the valuators for AIEngineList */ |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
4 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
5 |
#ifndef AI_ENGINELIST_VALUATOR_HPP |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
6 |
#define AI_ENGINELIST_VALUATOR_HPP |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
7 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
8 |
#include "ai_abstractlist.hpp" |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
9 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
10 |
/** |
9756
7e637829cbd3
(svn r12241) [NoAI] -Fix r12236: global search/replace to the unreadable documentation! WHOHO! (tnx Progman)
truebrain
parents:
9753
diff
changeset
|
11 |
* Get the cargo-type for entries in an AIEngineList instance. |
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:
9772
diff
changeset
|
12 |
* @note Resulting items are of the type CargoID. |
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:
9772
diff
changeset
|
13 |
* @note Can only operate on an AIEngineList instance. |
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:
9772
diff
changeset
|
14 |
* @ingroup AIEngineList |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
15 |
*/ |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
16 |
class AIEngineList_vCargoType : public AIAbstractList::Valuator { |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
17 |
public: |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
18 |
static const char *GetClassName() { return "AIEngineList_vCargoType"; } |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
19 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
20 |
private: |
9772
c1035f0ac732
(svn r12265) [NoAI] -Add: added a general protection that doesn't allow people using valuators on lists that aren't ment for those valuators
truebrain
parents:
9756
diff
changeset
|
21 |
const char *GetListName() const { return "AIEngineList"; } |
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:
9772
diff
changeset
|
22 |
int32 Valuate(int32 engine_id) const; |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
23 |
}; |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
24 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
25 |
/** |
9756
7e637829cbd3
(svn r12241) [NoAI] -Fix r12236: global search/replace to the unreadable documentation! WHOHO! (tnx Progman)
truebrain
parents:
9753
diff
changeset
|
26 |
* Get the capacity for entries in an AIEngineList instance. |
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:
9772
diff
changeset
|
27 |
* @note Resulting items are of the type int32. |
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:
9772
diff
changeset
|
28 |
* @note Can only operate on an AIEngineList instance. |
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:
9772
diff
changeset
|
29 |
* @ingroup AIEngineList |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
30 |
*/ |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
31 |
class AIEngineList_vCapacity : public AIAbstractList::Valuator { |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
32 |
public: |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
33 |
static const char *GetClassName() { return "AIEngineList_vCapacity"; } |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
34 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
35 |
private: |
9772
c1035f0ac732
(svn r12265) [NoAI] -Add: added a general protection that doesn't allow people using valuators on lists that aren't ment for those valuators
truebrain
parents:
9756
diff
changeset
|
36 |
const char *GetListName() const { return "AIEngineList"; } |
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:
9772
diff
changeset
|
37 |
int32 Valuate(int32 engine_id) const; |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
38 |
}; |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
39 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
40 |
/** |
9756
7e637829cbd3
(svn r12241) [NoAI] -Fix r12236: global search/replace to the unreadable documentation! WHOHO! (tnx Progman)
truebrain
parents:
9753
diff
changeset
|
41 |
* Get the reliability for entries in an AIEngineList instance. |
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:
9772
diff
changeset
|
42 |
* @note Resulting items are of the type int32. |
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:
9772
diff
changeset
|
43 |
* @note Can only operate on an AIEngineList instance. |
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:
9772
diff
changeset
|
44 |
* @ingroup AIEngineList |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
45 |
*/ |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
46 |
class AIEngineList_vReliability : public AIAbstractList::Valuator { |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
47 |
public: |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
48 |
static const char *GetClassName() { return "AIEngineList_vReliability"; } |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
49 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
50 |
private: |
9772
c1035f0ac732
(svn r12265) [NoAI] -Add: added a general protection that doesn't allow people using valuators on lists that aren't ment for those valuators
truebrain
parents:
9756
diff
changeset
|
51 |
const char *GetListName() const { return "AIEngineList"; } |
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:
9772
diff
changeset
|
52 |
int32 Valuate(int32 engine_id) const; |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
53 |
}; |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
54 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
55 |
/** |
9756
7e637829cbd3
(svn r12241) [NoAI] -Fix r12236: global search/replace to the unreadable documentation! WHOHO! (tnx Progman)
truebrain
parents:
9753
diff
changeset
|
56 |
* Get the max speed for entries in an AIEngineList instance. |
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:
9772
diff
changeset
|
57 |
* @note Resulting items are of the type int32. |
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:
9772
diff
changeset
|
58 |
* @note Can only operate on an AIEngineList instance. |
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:
9772
diff
changeset
|
59 |
* @ingroup AIEngineList |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
60 |
*/ |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
61 |
class AIEngineList_vMaxSpeed : public AIAbstractList::Valuator { |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
62 |
public: |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
63 |
static const char *GetClassName() { return "AIEngineList_vMaxSpeed"; } |
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
64 |
|
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
65 |
private: |
9772
c1035f0ac732
(svn r12265) [NoAI] -Add: added a general protection that doesn't allow people using valuators on lists that aren't ment for those valuators
truebrain
parents:
9756
diff
changeset
|
66 |
const char *GetListName() const { return "AIEngineList"; } |
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:
9772
diff
changeset
|
67 |
int32 Valuate(int32 engine_id) const; |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
68 |
}; |
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
69 |
|
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
70 |
/** |
9756
7e637829cbd3
(svn r12241) [NoAI] -Fix r12236: global search/replace to the unreadable documentation! WHOHO! (tnx Progman)
truebrain
parents:
9753
diff
changeset
|
71 |
* Get the price for entries in an AIEngineList instance. |
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:
9772
diff
changeset
|
72 |
* @note Resulting items are of the type int32. |
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:
9772
diff
changeset
|
73 |
* @note Can only operate on an AIEngineList instance. |
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:
9772
diff
changeset
|
74 |
* @ingroup AIEngineList |
9753
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
75 |
*/ |
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
76 |
class AIEngineList_vPrice : public AIAbstractList::Valuator { |
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
77 |
public: |
7209db94ad12
(svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents:
9714
diff
changeset
|
78 |
static const char *GetClassName() { return "AIEngineList_vPrice"; } |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
79 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
80 |
private: |
9772
c1035f0ac732
(svn r12265) [NoAI] -Add: added a general protection that doesn't allow people using valuators on lists that aren't ment for those valuators
truebrain
parents:
9756
diff
changeset
|
81 |
const char *GetListName() const { return "AIEngineList"; } |
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:
9772
diff
changeset
|
82 |
int32 Valuate(int32 engine_id) const; |
9714
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
83 |
}; |
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
84 |
|
fdbdae7ea647
(svn r11298) [NoAI] -Add: added EngineList + Valuators for all common functions. This should replace all FindXXXEngine, which will be removed soon
truelight
parents:
diff
changeset
|
85 |
#endif /* AI_ENGINELIST_VALUATOR_HPP */ |