Ejemplo n.º 1
0
        // A static method to make a joker
        public static Card NewJoker(JokerType jokerType, object owner)
        {
            SuitType s = (jokerType == JokerType.Big) ? SuitType.BigJoker : SuitType.Joker;

            // Allow the constructor to force the proper type.
            return(new Card(s, SpotType.Two, owner));
        }
Ejemplo n.º 2
0
 public static Card NewJoker(JokerType jokerType)
 {
     return(Card.NewJoker(jokerType, null));
 }
Ejemplo n.º 3
0
 public static Card NewJoker(JokerType jokerType)
 {
     return Card.NewJoker(jokerType, null);
 }
Ejemplo n.º 4
0
        // A static method to make a joker
        public static Card NewJoker(JokerType jokerType, object owner)
        {
            SuitType s = (jokerType == JokerType.Big) ? SuitType.BigJoker : SuitType.Joker;

            // Allow the constructor to force the proper type.
            return new Card(s, SpotType.Two, owner);
        }