//
// Created by Dan Crosby on 11/29/20.
//

#ifndef EAGLE0_PLAYERSETUPCOMMANDFACTORY_HPP
#define EAGLE0_PLAYERSETUPCOMMANDFACTORY_HPP

#include "src/main/cpp/net/eagle0/shardok/library/GameStateW.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/ShardokCommand.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/settings/GameSettings.hpp"

namespace shardok {

using Unit = net::eagle0::shardok::storage::fb::Unit;

class PlayerSetupCommandFactory {
private:
    const SettingsGetter settings;

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

    auto AddAvailablePlaceAndHideUnitCommandsForOneUnit(
            CommandList& existingCommands,
            bool isDefender,
            const Unit* unit,
            const GameStateW& gameState) const -> void;

    auto AddAvailablePlayerSetupCommands(
            CommandList& existingCommands,
            PlayerId playerId,
            const GameStateW& gameState) const -> void;
};

}  // namespace shardok

#endif  // EAGLE0_PLAYERSETUPCOMMANDFACTORY_HPP
