// 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)); }
public static Card NewJoker(JokerType jokerType) { return(Card.NewJoker(jokerType, null)); }
public static Card NewJoker(JokerType jokerType) { return Card.NewJoker(jokerType, null); }
// 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); }