//
// Created by Dan Crosby on 3/5/21.
//

#ifndef EAGLE0_FORTIFYCOMMANDFACTORY_HPP
#define EAGLE0_FORTIFYCOMMANDFACTORY_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/settings/GameSettings.hpp"

namespace shardok {

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

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

    auto AddAvailableFortifyCommands(
            CommandList& existingCommands,
            const Unit* actor,
            ActionPoints remainingActionPoints,
            const Terrain* terrain) const -> void;

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

}  // namespace shardok

#endif  // EAGLE0_FORTIFYCOMMANDFACTORY_HPP
