Пример #1
0
 public Draw(Turn parent)
     : base(RequestType.Draw, parent.RequestedPlayer)
 {
 }
Пример #2
0
 public Discard(Turn parent)
     : base(RequestType.DiscardCard, parent.RequestedPlayer)
 {
 }
Пример #3
0
 protected override void OnNext()
 {
     Player last = parent.CurrentPlayer;
     last.OnTurnEnded();
     parent.NextPlayer();
     Game.Session.EventManager.OnPlayerEndedTurn(last);
     if(parent.CurrentPlayer.BeginsRound)
     {
         End();
         return;
     }
     turn = new Turn(this, parent.CurrentPlayer);
     PushHandler(turn);
 }
Пример #4
0
 protected override void OnStart()
 {
     turn = new Turn(this, parent.CurrentPlayer);
     PushHandler(turn);
 }
Пример #5
0
 public Play(Turn parent)
     : base(RequestType.Play, parent.RequestedPlayer)
 {
 }