PotentialTargets.h 728 B

1234567891011121314151617181920212223242526
  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. std::vector<const CStack *> unreachableEnemies;
  17. //std::function<AttackPossibility(bool,BattleHex)> GenerateAttackInfo; //args: shooting, destHex
  18. PotentialTargets(){};
  19. PotentialTargets(const CStack *attacker, const HypotheticChangesToBattleState &state = HypotheticChangesToBattleState());
  20. AttackPossibility bestAction() const;
  21. int bestActionValue() const;
  22. };