public void StartGame(BetBoard BetBoard) { if (this.BetBoard != null) { throw new InvalidOperationException("This Roullete has not finished the game."); } if (state != RouletteState.waiting) { throw new InvalidOperationException("The Roullete can not be started."); } if (BetBoard == null) { throw new ArgumentNullException("Invalid Parameter to start the game."); } this.BetBoard = BetBoard; state = RouletteState.on_playing; }
public void FinalizeGame() { this.BetBoard = null; state = RouletteState.waiting; }