Example #1
0
 public static Color setCardColor(cardContent c)
 {
     if (c.getColor() == infoBaraja.color.blue)
     {
         return(Color.blue);
     }
     else if (c.getColor() == infoBaraja.color.red)
     {
         return(Color.red);
     }
     else if (c.getColor() == infoBaraja.color.yellow)
     {
         return(Color.yellow);
     }
     else if (c.getColor() == infoBaraja.color.black)
     {
         return(Color.black);
     }
     else if (c.getColor() == infoBaraja.color.white)
     {
         return(Color.white);
     }
     else
     {
         return(Color.green);
     }
 }
Example #2
0
 public cardContent shareCard()
 {
     if (deck.Count > 0)
     {
         cardContent s = deck[0];
         deck.RemoveAt(0);
         return(s);
     }
     return(new cardContent(color.green, -1));
 }