//
// Created by sebastian on 05.08.26.
//

#include "PresentationGameState.h"

#include "LudoGameMode.h"

ludo::PresentationGameState::PresentationGameState(const LudoGameMode& gameMode, const LudoGameState &originalGameState) :
    m_currentPlayer(gameMode.getCurrentPlayer()), m_diceValue(originalGameState.getDiceValue()), m_enableDiceRoll(false), m_currentPlayerColor(gameMode.getColorOf(gameMode.getCurrentPlayer())) {
}

void ludo::PresentationGameState::commitGameState(const engine::PlayerID currentPlayer, const ludo::PlayerColor color, const int diceValue, const bool enableDiceRoll) {
    m_currentPlayer = currentPlayer;
    m_diceValue = diceValue;
    m_enableDiceRoll = enableDiceRoll;
    m_currentPlayerColor = color;
}
