@pretty-chitty/core
    Preparing search index...

    Class GameDeckChit<T>

    A GameDeck contains a fixed number of chits. The deck is broken into "stages", and all draws happen from the top stage. Discards are added to a bottom stage. If a stage is empty, the stage is removed and all other stages move up in line. If you need to draw a card from the discard stage, it becomes a primary stage and a new discard stage is created.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Accessors

    • get parentOutletIndex(): number | undefined

      Returns number | undefined

    • get parentOutlet(): string | undefined

      Returns string | undefined

    • get isClickable(): boolean

      Returns true if the chit is currently clickable

      Returns boolean

    • get currentTurn(): Turn<any, any, any>

      Returns Turn<any, any, any>

    Constructors

    Methods

    • Parameters

      • OptionalnewValue: Chit
      • OptionalparentOutlet: string
      • OptionalparentOutletIndex: number

      Returns void

    • Parameters

      • Optionalmessage: string

      Returns Promise<T | undefined>

    Properties

    id?: string
    orderedChildren: OrderedOutlet<Chit> = ...
    chitGenerator?: () => T
    stages: Stage<T>[] = []