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

#ifndef EAGLE0_FREEZEWATERCOMMANDFACTORY_HPP
#define EAGLE0_FREEZEWATERCOMMANDFACTORY_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"

namespace shardok {

using WeatherFb = net::eagle0::shardok::storage::fb::Weather;
using Units = flatbuffers::Vector<const Unit *>;

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

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

    void AddAvailableFreezeWaterCommands(
            CommandList &commands,
            const Unit *unit,
            ActionPoints remainingActionPoints,
            const Coords &position,
            const WeatherFb *weather,
            const HexMap *hexMap,
            const Units *units) const;

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

}  // namespace shardok

#endif  // EAGLE0_FREEZEWATERCOMMANDFACTORY_HPP
