BattleStateInfoForRetreat.h 759 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * BattleStateInfoForRetreat.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. VCMI_LIB_NAMESPACE_BEGIN
  12. namespace battle
  13. {
  14. class Unit;
  15. }
  16. class CGHeroInstance;
  17. class DLL_LINKAGE BattleStateInfoForRetreat
  18. {
  19. public:
  20. bool canFlee;
  21. bool canSurrender;
  22. bool isLastTurnBeforeDie;
  23. ui8 ourSide;
  24. std::vector<const battle::Unit *> ourStacks;
  25. std::vector<const battle::Unit *> enemyStacks;
  26. const CGHeroInstance * ourHero;
  27. const CGHeroInstance * enemyHero;
  28. BattleStateInfoForRetreat();
  29. uint64_t getOurStrength() const;
  30. uint64_t getEnemyStrength() const;
  31. };
  32. VCMI_LIB_NAMESPACE_END