2016-10-28 16:16:46 +02:00
|
|
|
/*
|
|
|
|
* PotentialTargets.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "AttackPossibility.h"
|
|
|
|
|
|
|
|
class PotentialTargets
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::vector<AttackPossibility> possibleAttacks;
|
2017-07-20 06:08:49 +02:00
|
|
|
std::vector<const battle::Unit *> unreachableEnemies;
|
2016-10-28 16:16:46 +02:00
|
|
|
|
|
|
|
PotentialTargets(){};
|
2023-08-08 17:37:42 +02:00
|
|
|
PotentialTargets(
|
|
|
|
const battle::Unit * attacker,
|
|
|
|
DamageCache & damageCache,
|
|
|
|
std::shared_ptr<HypotheticBattle> hb);
|
2016-10-28 16:16:46 +02:00
|
|
|
|
2022-04-11 08:12:41 +02:00
|
|
|
const AttackPossibility & bestAction() const;
|
2019-06-28 20:05:25 +02:00
|
|
|
int64_t bestActionValue() const;
|
2016-10-28 16:16:46 +02:00
|
|
|
};
|