Exemple #1
0
 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;
 }
Exemple #2
0
 public void FinalizeGame()
 {
     this.BetBoard = null;
     state         = RouletteState.waiting;
 }