Returns the number of the player who has won the game. If it is still in progress it will return -1;
Invoked by the player or A.I to play a card.
It will return false if it is not currently legal to play the card. Otherwise it will play the card then send the action to the server.
The card to play
The card's targets (empty array if it has none)
The card's host if it is an item or null if it is not an item
When an attacking unit is blocked by multiple defenders, the attacker's owner may set the order damage is delt in. This function does that for a given attacker and an ordered list of blockers.
The unit that has been blocked
The blockers in the order that damage should be applied to them
Syncs an event that happened on the server into the state of this game model
Generated using TypeDoc
Checks if the player controlling this game can play a given card with given targets