Example #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));
        }
Example #2
0
 public static Card NewJoker(JokerType jokerType)
 {
     return(Card.NewJoker(jokerType, null));
 }
Example #3
0
 public static Card NewJoker(JokerType jokerType)
 {
     return Card.NewJoker(jokerType, null);
 }
Example #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);
        }