1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* improvements in recruitment window (slider won't allow to select more creatres than we can afford)

This commit is contained in:
Michał W. Urbańczyk
2008-05-12 05:46:04 +00:00
parent 2f2169b71f
commit 5b077531cd
7 changed files with 33 additions and 6 deletions

View File

@@ -92,6 +92,7 @@ public:
PseudoV< PseudoV< PseudoV<unsigned char> > > & getVisibilityMap(); //returns visibility map (TODO: make it const)
const CGHeroInstance * getHeroInfo(int player, int val, bool mode); //mode = 0 -> val = serial; mode = 1 -> val = ID
int getResourceAmount(int type);
std::vector<int> getResourceAmount();
int howManyHeroes();
const CGTownInstance * getTownInfo(int val, bool mode); //mode = 0 -> val = serial; mode = 1 -> val = ID
std::vector < const CGTownInstance *> getTownsInfo(bool onlyOur=true);