Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrefGame

Hierarchy

  • PrefGame

Index

Constructors

constructor

  • new PrefGame(username1: string, username2: string, username3: string, bula: number, refas: number, options: PrefEngineOptions): PrefGame

Properties

Private _bula

_bula: number

Private _currentPlayer

_currentPlayer: PrefPlayer

Private _dealerPlayer

_dealerPlayer: PrefPlayer

Private _deck

_deck: PrefDeck

Private _firstBidPlayer

_firstBidPlayer: PrefPlayer

Private _options

Private _p1

Private _p2

Private _p3

Private _refas

_refas: number

Private _round

_round: PrefRound

Private _rounds

_rounds: PrefRound[]

Private _score

_score: PrefScore

Private _secondBidPlayer

_secondBidPlayer: PrefPlayer

Accessors

allowSubAndMortKontras

  • get allowSubAndMortKontras(): boolean

currentPlayer

dealerPlayer

deck

  • get deck(): PrefDeck

firstBidPlayer

json

  • get json(): any

next

p1

p2

p3

round

secondBidPlayer

Methods

bid

Private checkCurrentPlayer

  • checkCurrentPlayer(username: string): PrefGame

Private checkCurrentStage

contracting

deal

decide

  • decide(username: string, follows: boolean): PrefGame

exchange

  • exchange(username: string, discard1: PrefDeckCard, discard2: PrefDeckCard): PrefGame
  • Parameters

    • username: string
    • discard1: PrefDeckCard
    • discard2: PrefDeckCard

    Returns PrefGame

kontra

nextPlayer

restoreDeck

  • restoreDeck(cards: PrefDeckCard[]): PrefGame

throw

  • throw(username: string, card: PrefDeckCard): PrefGame

Generated using TypeDoc