Constructors
constructor
- new PrefGame(username1: string, username2: string, username3: string, bula: number, refas: number, options: PrefEngineOptions): PrefGame
-
Parameters
-
username1: string
-
username2: string
-
username3: string
-
bula: number
-
refas: number
-
Properties
Private _bula
_bula: number
Private _deck
_deck: PrefDeck
Private _refas
_refas: number
Private _score
_score: PrefScore
Accessors
allowSubAndMortKontras
- get allowSubAndMortKontras(): boolean
Methods
Private checkCurrentPlayer
- checkCurrentPlayer(username: string): PrefGame
Private checkCurrentStage
decide
- decide(username: string, follows: boolean): PrefGame
-
Parameters
-
username: string
-
follows: boolean
exchange
- exchange(username: string, discard1: PrefDeckCard, discard2: PrefDeckCard): PrefGame
-
Parameters
-
username: string
-
discard1: PrefDeckCard
-
discard2: PrefDeckCard
restoreDeck
- restoreDeck(cards: PrefDeckCard[]): PrefGame
throw
- throw(username: string, card: PrefDeckCard): PrefGame
-
Parameters
-
username: string
-
card: PrefDeckCard