1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00
vcmi/CCallback.h
Michał W. Urbańczyk 16a1861fc4 * heroList
* functions for getting info about heroes in CCallback
* function for initializing GameState
* improvements in CHeroInstance
* added codename
* minor stuff
2007-09-14 13:11:10 +00:00

27 lines
555 B
C++

#ifndef CCALLBACK_H
#define CCALLBACK_H
class CGameState;
class CHeroInstance;
struct HeroMoveDetails
{
int3 src, dst; //source and destination points
int heroID; //which hero
int owner;
};
class CCallback
{
private:
void newTurn();
protected:
CGameState * gs;
public:
CCallback(CGameState * GS):gs(GS){};
bool moveHero(int ID, int3 destPoint);
int howManyHeroes(int player);
const CHeroInstance * getHeroInfo(int player, int val, bool mode); //mode = 0 -> val = serial; mode = 1 -> val = ID
};
#endif //CCALLBACK_H