2020-06-05 13:32:05 +00:00
|
|
|
#ifndef CREATURELIB_RESOLVETARGET_HPP
|
|
|
|
#define CREATURELIB_RESOLVETARGET_HPP
|
|
|
|
#include "../../Library/Attacks/AttackTarget.hpp"
|
|
|
|
#include "../Models/Battle.hpp"
|
|
|
|
#include "../Models/Creature.hpp"
|
|
|
|
#include "../Models/CreatureIndex.hpp"
|
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
namespace CreatureLib::Battling {
|
|
|
|
class TargetResolver {
|
|
|
|
public:
|
2020-12-12 11:22:48 +00:00
|
|
|
static ArbUt::List<ArbUt::OptionalBorrowedPtr<Creature>>
|
|
|
|
ResolveTargets(const CreatureIndex& index, CreatureLib::Library::AttackTarget target,
|
2021-05-24 08:31:15 +00:00
|
|
|
const ArbUt::BorrowedPtr<Battle>& battle);
|
2020-06-05 13:32:05 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CREATURELIB_RESOLVETARGET_HPP
|