public void UpdateGameState(int lobbyID, DTOGameState gameState) { //Update alle elementen. UpdateIjsschots(lobbyID, gameState.AllIjsschots); UpdateSpeler(lobbyID, gameState.AllSpeler); UpdatePion(lobbyID, gameState.AllPion); UpdateKleur(lobbyID, gameState.KleurSpeler); }
public DTOGameState GetGameState(int lobbyID) { //Zie wat de staat is van alle ellementen. DTOGameState gameState = new DTOGameState(); gameState.AllIjsschots = GetAllIjschots(lobbyID); gameState.AllPion = GetAllPion(lobbyID); gameState.KleurSpeler = GetKleur(lobbyID); gameState.AllSpeler = SpelerInLobby(lobbyID); return(gameState); }