Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JokerCard

Special sub-class for representing Joker cards

param color

Controls the specific unicode character used to represent the card; Defaults to whatever is set as the prefered color (see preferedJokerColor())

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

color: jokerColor = preferedColor
rank: Rank
suit: Suit

Accessors

  • get deck(): Deck
  • set deck(deck: Deck): void
  • The deck instance that this card belongs to

    Returns Deck

  • The deck instance that this card belongs to

    Parameters

    Returns void

  • get unicode(): string

Methods

  • toString(): string
  • Returns a human-readable string representation of the card object

    eg. "<JokerCard color=red>"

    Returns string

Generated using TypeDoc