Exemple #1
0
 public void StartPlay(int number)
 {
     Console.WriteLine("Новая композиция!");
     PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs()
     {
         SoundNumber = number
     });
 }
Exemple #2
0
 void OnPlayIsStarted(PlayIsStartedEvent e, GameState state)
 {
     topLabelLeft.Text  = "Table " + state.TableId.ToString();
     topLabelRight.Text = "Play " + state.PlayIndex.ToString();
     //
     if (state.TableId != tableId)
     {
         NewTable(state);
     }
     NewPlay(state);
 }
Exemple #3
0
 private void OnPlayIsStarted(PlayIsStartedEvent e)
 {
     Reset();
     if (TableId == e.TableId)
     {
         PlayIndex++;
     }
     else
     {
         PlayIndex = 0;
     }
     TableId = e.TableId;
     PlayersAtTable.AddRange(e.Players);
     PlayersInCurrentPlay.AddRange(e.Players);
     BigBlind   = e.BigBlindAmount;
     SmallBlind = e.SmallBlindAmount;
     logger.Info("Play started, table {0}, play {1}", TableId, PlayIndex);
 }
 public void StartPlay(int n)
 {
     PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs(n));
 }
 public void StartPlay(int x)
 {
     PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs {
         SoundNumber = x
     });
 }
Exemple #6
0
 protected override void OnPlayIsStarted(PlayIsStartedEvent e, GameState state)
 {
     Reset();
 }
Exemple #7
0
 protected virtual void OnPlayIsStarted(PlayIsStartedEvent e, GameState state)
 {
 }
Exemple #8
0
        public void StartPlay(int number)
        {
            PlayIsStartedEventArgs args = new PlayIsStartedEventArgs(number);

            PlayIsStartedEvent?.Invoke(this, args);
        }
Exemple #9
0
 public void StartPlay(int song)
 => PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs {
     Song = song
 });