//
// Created by Dan Crosby on 7/2/20.
//

#ifndef EAGLE0_REDUCECOMMANDFACTORY_HPP
#define EAGLE0_REDUCECOMMANDFACTORY_HPP

#include "src/main/cpp/net/eagle0/shardok/library/ShardokCommand.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/command_factories/CommandFactory.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/map/Coordinates.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/settings/GameSettings.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/unit/Unit.hpp"

namespace shardok {

class ReduceCommandFactory : public CommandFactory {
private:
    const SettingsGetter settings;

public:
    explicit ReduceCommandFactory(const SettingsGetter &getter) : settings(getter){};

    auto AddAvailableReduceCommands(
            CommandList &existingCommands,
            const Unit *unit,
            ActionPoints remainingActionPoints,
            const Coords &position,
            const HexMap *map,
            const vector<PlayerId> &allyPids,
            const Units *units) const -> void;

    void AddAvailableCommands(CommandList &commands, const CommandParams &params) const override;
};

}  // namespace shardok

#endif  // EAGLE0_REDUCECOMMANDFACTORY_HPP
