author | truebrain |
Wed, 27 Feb 2008 21:07:31 +0000 | |
branch | noai |
changeset 9792 | e1222f4674c2 |
parent 9778 | 38560cd27070 |
child 9816 | 35e866676c00 |
permissions | -rw-r--r-- |
9589
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
2 |
|
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
3 |
/** @file ai_townlist.hpp list all the towns */ |
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
|
4 |
/** @defgroup AITownList AITownList - Valuators and lists working on/with AITownList */ |
9589
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
5 |
|
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
6 |
#ifndef AI_TOWNLIST_HPP |
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
7 |
#define AI_TOWNLIST_HPP |
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
8 |
|
9593
012f29f59906
(svn r9626) [NoAI] -Change: renamed AIList to AIAbstractList and hide 'AddItem' and 'RemoveItem'
truelight
parents:
9589
diff
changeset
|
9 |
#include "ai_abstractlist.hpp" |
9589
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
10 |
|
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
11 |
/** |
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 |
* Creates a list of towns that are currently on the map. |
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 |
* @ingroup AITownList |
9589
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
14 |
*/ |
9593
012f29f59906
(svn r9626) [NoAI] -Change: renamed AIList to AIAbstractList and hide 'AddItem' and 'RemoveItem'
truelight
parents:
9589
diff
changeset
|
15 |
class AITownList : public AIAbstractList { |
9589
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
16 |
public: |
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
17 |
static const char *GetClassName() { return "AITownList"; } |
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
18 |
AITownList(); |
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:
9596
diff
changeset
|
19 |
|
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:
9596
diff
changeset
|
20 |
private: |
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:
9596
diff
changeset
|
21 |
const char *GetListName() const { return "AITownList"; } |
9589
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
22 |
}; |
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
23 |
|
2fbda08db406
(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
truelight
parents:
diff
changeset
|
24 |
#endif /* AI_TOWNLIST_HPP */ |