CPlayerBattleCallback.h 827 B

1234567891011121314151617181920212223242526
  1. /*
  2. * CPlayerBattleCallback.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "CBattleInfoCallback.h"
  12. class CGHeroInstance;
  13. class DLL_LINKAGE CPlayerBattleCallback : public CBattleInfoCallback
  14. {
  15. public:
  16. bool battleCanFlee() const; //returns true if caller can flee from the battle
  17. TStacks battleGetStacks(EStackOwnership whose = MINE_AND_ENEMY, bool onlyAlive = true) const; //returns stacks on battlefield
  18. int battleGetSurrenderCost() const; //returns cost of surrendering battle, -1 if surrendering is not possible
  19. const CGHeroInstance * battleGetMyHero() const;
  20. InfoAboutHero battleGetEnemyHero() const;
  21. };