예제 #1
0
파일: Card.cs 프로젝트: Twistie/TwoServer
 /// <summary>
 /// When the next player
 /// </summary>
 /// <param name="twoServer"></param>
 /// <param name="player">Player that picked up card</param>
 /// <param name="cardArgs">Additional arguments for the card</param>
 public virtual void OnDraw(TwoServerWindow twoServer, Player player, string[] cardArgs)
 {
     twoServer.SendToAllPlayers(String.Format("ANNOUNCE {0} picked up a card!",player.Name));
     twoServer.PlayerPickupCard(1,player);
     twoServer.PlayerList.NextPlayer(1);
 }
예제 #2
0
파일: Card.cs 프로젝트: Twistie/TwoServer
 public override void OnDraw(TwoServerWindow twoServer, Player player, string[] cardArgs)
 {
     if (IsActive)
     {
         twoServer.PlayerPickupCard(CurrentDrawAmount, player);
         IsActive = false;
     }
     else
     {
         twoServer.PlayerPickupCard(1, player);
     }
     twoServer.SendToAllPlayers("TOPCARD " + SortValue + "1");
     twoServer.PlayerList.NextPlayer(1);
 }
예제 #3
0
 public void PlayerPickupCardTest1()
 {
     TwoServerWindow target = new TwoServerWindow(); // TODO: Initialize to an appropriate value
     int noOfCards = 0; // TODO: Initialize to an appropriate value
     Player p = null; // TODO: Initialize to an appropriate value
     target.PlayerPickupCard(noOfCards, p);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }