Properties
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 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 turn
turn: number = 0
Protected turnNum
turnNum: number
Protected winner
winner: number = -1
Constructs a game given a format. The format informs how the game is initialized eg how much health each player starts with.