ColorRace/game/src/ludo/PresentationGameState.h
2026-08-05 13:41:25 +02:00

28 lines
865 B
C++

//
// Created by sebastian on 05.08.26.
//
#ifndef COLORRACE_PRESENTATIONGAMESTATE_H
#define COLORRACE_PRESENTATIONGAMESTATE_H
#include "LudoGameState.h"
#include "LudoGameMode.h"
namespace ludo {
class PresentationGameState {
public:
explicit PresentationGameState(const LudoGameMode& gameMode, const LudoGameState& originalGameState);
void commitGameState(engine::PlayerID currentPlayer, int diceValue, bool enableDiceRoll);
[[nodiscard]] engine::PlayerID getCurrentPlayer() const { return m_currentPlayer; }
[[nodiscard]] int getDiceValue() const { return m_diceValue; }
[[nodiscard]] bool isDiceRollEnabled() const { return m_enableDiceRoll; }
private:
engine::PlayerID m_currentPlayer ;
int m_diceValue;
bool m_enableDiceRoll;
};
}
#endif //COLORRACE_PRESENTATIONGAMESTATE_H