//
// Created by Dan Crosby on 1/10/22.
//

#ifndef EAGLE0_AISTRATEGY_HPP
#define EAGLE0_AISTRATEGY_HPP

#include "src/main/cpp/net/eagle0/shardok/ai/AIAttackGroups.hpp"

namespace shardok {

struct AIStrategy {
    enum StrategyType {
        STRATEGY_ATTACK_CASTLES,
        STRATEGY_ATTACK_UNITS,
        STRATEGY_HOLD_CASTLES,
        STRATEGY_SCATTER,
        STRATEGY_FLEE,
        STRATEGY_CROSS_RIVERS
    };

    StrategyType strategyType;

    vector<TargetPriorityList> targetPriorities{};
    CoordsSet targetLocations = CoordsSet(0, 0);
};

extern AIStrategy FleeStrategy;
auto AttackUnitsStrategy(const vector<TargetPriorityList>& targetPriorities) -> AIStrategy;
auto AttackCastlesStrategy(const vector<TargetPriorityList>& targetPriorities) -> AIStrategy;
extern AIStrategy HoldCastlesStrategy;
extern AIStrategy ScatterStrategy;
auto CrossRiversStrategy(const CoordsSet& targetLocations) -> AIStrategy;

}  // namespace shardok

#endif  // EAGLE0_AISTRATEGY_HPP
