Пример #1
0
 public void StartPlay(int number)
 {
     Console.WriteLine("Новая композиция!");
     PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs()
     {
         SoundNumber = number
     });
 }
Пример #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);
 }
Пример #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
     });
 }
Пример #6
0
 protected override void OnPlayIsStarted(PlayIsStartedEvent e, GameState state)
 {
     Reset();
 }
Пример #7
0
 protected virtual void OnPlayIsStarted(PlayIsStartedEvent e, GameState state)
 {
 }
Пример #8
0
        public void StartPlay(int number)
        {
            PlayIsStartedEventArgs args = new PlayIsStartedEventArgs(number);

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