Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrefTrick

Hierarchy

  • PrefTrick

Index

Constructors

constructor

  • new PrefTrick(players: 2 | 3, trump?: PrefDeckCardSuit | null): PrefTrick

Properties

Private _first

_first: PrefEngineTrickPlayer | null = null

Private _players

_players: 2 | 3

Private _second

_second: PrefEngineTrickPlayer | null = null

Private _third

_third: PrefEngineTrickPlayer | null = null

Private _trump

_trump: PrefDeckCardSuit | null

Private _winner

_winner: PrefEngineTrickPlayer | null = null

Accessors

first

  • get first(): PrefDeckCard | null

full

  • get full(): boolean

object

  • get object(): any

ppn

  • get ppn(): string

second

  • get second(): PrefDeckCard | null

string

  • get string(): string

third

  • get third(): PrefDeckCard | null

trump

  • get trump(): PrefDeckCardSuit | null

winner

Methods

Private calculateWinner

Private firstWins

  • firstWins(): boolean

Private secondWins

  • secondWins(): boolean

Private thirdWins

  • thirdWins(): boolean

throw

Private throwCard

Generated using TypeDoc