46
/** Scan the system data directories for armysets
48
* @return a list of available armysets
50
static std::list<std::string> scanArmysets();
52
// get the available armysets in the user's personal collection
53
static std::list<std::string> scanUserArmysets();
55
/** Get the armyset description file
57
* @param armysetsubdir the name of the armyset.
58
* @return the full name of the description file
60
static std::string getArmyset(std::string armysetsubdir);
62
/** Get the armyset description file from the user's personal collection
64
* @param armysetsubdir the name of the armyset.
65
* @return the full name of the description file
67
static std::string getUserArmyset(std::string armysetsubdir);
69
42
//! Get the directory where personal armysets live.
70
43
static std::string getUserArmysetDir();
72
45
//! Get the directory where system armysets live.
73
46
static std::string getArmysetDir();
75
//! Get the director where the given armyset lives.
76
static std::string getArmysetDir(Armyset *armyset);
78
//! Gets the description file for the given armyset.
79
static std::string getArmyset(Armyset *armyset);
81
// get an path for a file belonging to the given armyset.
82
static std::string getArmysetFile(Armyset *armyset, std::string pic);
85
/** Scan the system data directories for tilesets
87
* @return a list of available tilesets
89
static std::list<std::string> scanTilesets();
91
// get the available tilesets in the user's personal collection
92
static std::list<std::string> scanUserTilesets();
94
/** Get the tileset description file
96
* @param tilesetsubdir the dir name of the tileset.
97
* @return the full name of the description file
99
static std::string getTileset(std::string tilesetsubdir);
101
/** Get the tileset description file from the user's personal collection
103
* @param tilesetsubdir the name of the tileset.
104
* @return the full name of the description file
106
static std::string getUserTileset(std::string tilesetsubdir);
108
48
//! Get the directory where personal tilesets live.
109
49
static std::string getUserTilesetDir();
111
51
//! Get the directory where system tilesets live.
112
52
static std::string getTilesetDir();
114
//! Get the director where the given tileset lives.
115
static std::string getTilesetDir(Tileset *tileset);
117
//! Gets the description file for the given tileset.
118
static std::string getTileset(Tileset *tileset);
120
// get a path of a file in the given Tileset.
121
static std::string getTilesetFile(Tileset *tileset, std::string pic);
123
/** Scan the system data directories for shieldsets
125
* @return a list of available shieldsets
127
static std::list<std::string> scanShieldsets();
129
/** Scan the personal data directories for shieldsets
131
* @return a list of available shieldsets
133
static std::list<std::string> scanUserShieldsets();
135
/** Get the shieldset description file
137
* @param shieldsetsubdir the dir name of the shieldset.
138
* @return the full name of the description file
140
static std::string getShieldset(std::string shieldsetsubdir);
142
/** Get the shieldset conf file from the user's personal collection
144
* @param shieldsetsubdir the name of the shieldset.
145
* @return the full name of the description file
147
static std::string getUserShieldset(std::string shieldsetsubdir);
149
54
//! Get the directory where personal shieldsets live.
150
55
static std::string getUserShieldsetDir();
152
57
//! Get the directory where system shieldsets live.
153
58
static std::string getShieldsetDir();
155
//! Get the director where the given shieldset lives.
156
static std::string getShieldsetDir(Shieldset *shieldset);
158
//! Gets the description file for the given shieldset.
159
static std::string getShieldset(Shieldset *shieldset);
161
// get a path of a file in the given Shieldset.
162
static std::string getShieldsetFile(Shieldset *shieldset, std::string pic);
166
/** Scan the system data directories for citysets
168
* @return a list of available citysets
170
static std::list<std::string> scanCitysets();
172
// get the available citysets in the user's personal collection
173
static std::list<std::string> scanUserCitysets();
175
/** Get the cityset description file
177
* @param citysetsubdir the dir name of the cityset.
178
* @return the full name of the description file
180
static std::string getCityset(std::string citysetsubdir);
182
/** Get the cityset description file from the user's personal collection
184
* @param citysetsubdir the name of the cityset.
185
* @return the full name of the description file
187
static std::string getUserCityset(std::string citysetsubdir);
189
60
//! Get the directory where personal citysets live.
190
61
static std::string getUserCitysetDir();
192
63
//! Get the directory where system citysets live.
193
64
static std::string getCitysetDir();
195
//! Get the director where the given cityset lives.
196
static std::string getCitysetDir(Cityset *cityset);
198
//! Gets the description file for the given cityset.
199
static std::string getCityset(Cityset *cityset);
201
// get a path of a file in the given cityset.
202
static std::string getCitysetFile(Cityset *cityset, std::string pic);
204
66
//! load misc file, e.g. hero names
205
67
static std::string getMiscFile(std::string filename);