BattleStateInfoForRetreat.h 819 B

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