PotentialTargets.h 625 B

123456789101112131415161718192021222324252627
  1. /*
  2. * PotentialTargets.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 "AttackPossibility.h"
  12. class PotentialTargets
  13. {
  14. public:
  15. std::vector<AttackPossibility> possibleAttacks;
  16. battle::Units unreachableEnemies;
  17. PotentialTargets(){};
  18. PotentialTargets(
  19. const battle::Unit * attacker,
  20. DamageCache & damageCache,
  21. std::shared_ptr<HypotheticBattle> hb);
  22. const AttackPossibility & bestAction() const;
  23. int64_t bestActionValue() const;
  24. };