Example #1
0
 public void SetPlayer(GymCard card)
 {
     //Ensure players are loaded properly
     if (!this.player1.HasCard())
     {
         this.player1.SetCard(card);
         this.player1.SetEffect(card.GetEffect());
         this.bCon.SetPlayer(this.player1);
     }
     else if (!this.player2.HasCard())
     {
         this.player2.SetCard(card);
         this.bCon.SetPlayer(this.player2);
     }
 }
 //second player joins
 public void NewPlayer(GymCard card)
 {
     this.pCon.SetPlayer(card);
 }
Example #3
0
 public void SetCard(GymCard card)
 {
     this.card = card;
 }