Search
Preparing search index...
The search index is not available
preferans-engine-js - v0.0.11
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"prefTrick"
PrefTrick
Class PrefTrick
Hierarchy
PrefTrick
Index
Constructors
constructor
Properties
_first
_players
_second
_third
_trump
_winner
Accessors
first
full
object
ppn
second
string
third
trump
winner
Methods
calculate
Winner
first
Wins
second
Wins
third
Wins
throw
throw
Card
Constructors
constructor
new
Pref
Trick
(
players
:
2
|
3
, trump
?:
PrefDeckCardSuit
|
null
)
:
PrefTrick
Parameters
players:
2
|
3
Optional
trump:
PrefDeckCardSuit
|
null
Returns
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
Returns
PrefDeckCard
|
null
full
get
full
(
)
:
boolean
Returns
boolean
object
get
object
(
)
:
any
Returns
any
ppn
get
ppn
(
)
:
string
Returns
string
second
get
second
(
)
:
PrefDeckCard
|
null
Returns
PrefDeckCard
|
null
string
get
string
(
)
:
string
Returns
string
third
get
third
(
)
:
PrefDeckCard
|
null
Returns
PrefDeckCard
|
null
trump
get
trump
(
)
:
PrefDeckCardSuit
|
null
Returns
PrefDeckCardSuit
|
null
winner
get
winner
(
)
:
PrefPlayer
Returns
PrefPlayer
Methods
Private
calculate
Winner
calculate
Winner
(
)
:
PrefTrick
Returns
PrefTrick
Private
first
Wins
first
Wins
(
)
:
boolean
Returns
boolean
Private
second
Wins
second
Wins
(
)
:
boolean
Returns
boolean
Private
third
Wins
third
Wins
(
)
:
boolean
Returns
boolean
throw
throw
(
player
:
PrefPlayer
, card
:
PrefDeckCard
)
:
PrefTrick
Parameters
player:
PrefPlayer
card:
PrefDeckCard
Returns
PrefTrick
Private
throw
Card
throw
Card
(
position
:
PrefEngineTrickPosition
, player
:
PrefPlayer
, card
:
PrefDeckCard
)
:
boolean
Parameters
position:
PrefEngineTrickPosition
player:
PrefPlayer
card:
PrefDeckCard
Returns
boolean
Globals
"
Pref
Game
Enums"
"pref
Game"
"pref
Hand
Check"
"pref
Player"
"pref
Round"
"pref
Trick"
"stage/pref
Stage"
"stage/pref
Stage
Bidding"
"stage/pref
Stage
Deciding"
"stage/pref
Stage
Kontra"
"stage/pref
Stage
Playing"
Pref
Engine
Trick
Position
Pref
Trick
constructor
_first
_players
_second
_third
_trump
_winner
first
full
object
ppn
second
string
third
trump
winner
calculate
Winner
first
Wins
second
Wins
third
Wins
throw
throw
Card
Pref
Engine
Trick
Player
player
String
Generated using
TypeDoc