//
// Created by Dan Crosby on 6/4/20.
//

#ifndef EAGLE0_STARTPLAYERTURNACTION_HPP
#define EAGLE0_STARTPLAYERTURNACTION_HPP

#include <utility>

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

namespace shardok {

class StartPlayerTurnAction : public ShardokAction {
private:
    [[nodiscard]] auto InternalExecute(
            const GameStateW& currentState,
            const std::shared_ptr<RandomGenerator>& generator) const
            -> vector<ActionResult> override;

    const GameStateW startingState;
    const PlayerId newFactionId;
    const SettingsGetter settingsGetter;

public:
    StartPlayerTurnAction(
            GameStateW startingState,
            const PlayerId newFactionId,
            const SettingsGetter& settingsGetter)
        : startingState(std::move(startingState)),
          newFactionId(newFactionId),
          settingsGetter(settingsGetter) {}
};
}  // namespace shardok

#endif  // EAGLE0_STARTPLAYERTURNACTION_HPP
