CCallback.h 590 B

12345678910111213141516171819202122232425262728
  1. #ifndef CCALLBACK_H
  2. #define CCALLBACK_H
  3. class CGameState;
  4. class CHeroInstance;
  5. struct HeroMoveDetails
  6. {
  7. int3 src, dst; //source and destination points
  8. int heroID; //which hero
  9. int owner;
  10. };
  11. class CCallback
  12. {
  13. private:
  14. void newTurn();
  15. protected:
  16. CGameState * gs;
  17. public:
  18. CCallback(CGameState * GS):gs(GS){};
  19. bool moveHero(int ID, int3 destPoint);
  20. int howManyHeroes(int player);
  21. const CHeroInstance * getHeroInfo(int player, int val, bool mode); //mode = 0 -> val = serial; mode = 1 -> val = ID
  22. int getResourceAmount(int type);
  23. };
  24. #endif //CCALLBACK_H