Properties
Protected actionLog
Protected actionSystem
Protected attackDamageOrder
attack
DamageOrder: Map<string, Unit[]> | null = null
Protected cardPool
card
Pool: Map<string, Card>
Protected client
client: boolean = false
Protected currentChoices
current
Choices: (null | Choice)[] = [null, null]
Protected deckLists
Protected generatedCardId
generatedCardId: number = 1
lastCardsPlayed
lastCardsPlayed: string[] = []
Protected lastPlayedCardName
lastPlayedCardName: string = "None"
Protected name
name: string
Protected orderableAttacks
orderable
Attacks: Map<string, Unit[]> | null = null
promptCardChoice
promptCardChoice: function
Type declaration
-
- (player: number, choices: Card[], min: number, max: number, callback: function | null, message: string, evaluator: ChoiceHeuristic): void
-
Parameters
-
player: number
-
choices: Card[]
-
min: number
-
max: number
-
callback: function | null
-
message: string
-
Returns void
Protected Optional recivedChoice
recivedChoice: undefined | object
Protected seed
seed: string | number = 0
Protected turn
turn: number = 0
Protected turnNum
turnNum: number
Protected winner
winner: number = -1
Static Private rng
rng: Prando
Static Private seed
seed: string | number
Returns the number of the player who has won the game. If it is still in progress it will return -1;