Property | Type | Description | |
---|---|---|---|
GameEnded | GameEndedEventHandler |
Property | Type | Description |
---|
Method | Description | |
---|---|---|
ApplyAttackDamage ( IAttacker attacker, IDamageableEntity target, bool isRetaliation = false ) : void |
Apply damage from the attacker to the target
|
|
CheckForGameEnd ( ) : bool |
Checks to see if the game has ended
|
|
DealPreMulligan ( ) : void |
Shuffles and deals the pre-mulligan hands
|
|
EndTurn ( ) : void |
Ends the turn for the current player
|
|
Initialize ( BasePlayer player, BasePlayer opponent, |
Initialize the game engine
|
|
MoveCard ( int id, Zones srcZone, int srcPos, Zones destZone, int destPos ) : void |
Moves a card from one zone position to another zone position
|
|
Mulligan ( BasePlayer player, IEnumerable |
Performs a mulligan for the specified player
|
|
RegisterDeathrattle ( BaseCard source, |
Register a baseDeathrattle with the game engine. If the source card dies, it will trigger.
|
|
StartTurn ( BasePlayer player ) : void |
Starts a turn for the specified player
|
|
TriggerDeathrattles ( ) : void |
Triggers death rattles after damage has been calculated.
|
|
Uninitialize ( ) : void |
Uninitializes the game engine
|
|
UnregisterDeathrattle ( |
Removes all deathrattles registered by the source card.
|
public static ApplyAttackDamage ( IAttacker attacker, IDamageableEntity target, bool isRetaliation = false ) : void | ||
attacker | IAttacker | The card doing the attacking |
target | IDamageableEntity | The object receiving the attack |
isRetaliation | bool | Whether or not the attack is a retaliation |
return | void |
public static Initialize ( BasePlayer player, BasePlayer opponent, |
||
player | BasePlayer | Player 1 |
opponent | BasePlayer | Player 2 (the opponent) |
board | The current game board | |
turnNumber | int | The current turn number |
currentPlayer | BasePlayer | The current player |
randomSeed | int | The random seed to use |
return | void |
public static MoveCard ( int id, Zones srcZone, int srcPos, Zones destZone, int destPos ) : void | ||
id | int | The card to move |
srcZone | Zones | The source zone |
srcPos | int | The source position |
destZone | Zones | The destination zone |
destPos | int | The destination position |
return | void |
public static Mulligan ( BasePlayer player, IEnumerable |
||
player | BasePlayer | The player performing the mulligan |
mulligans | IEnumerable |
The cards to toss if any |
return | void |
public static RegisterDeathrattle ( BaseCard source, |
||
source | BaseCard | The triggering card |
baseDeathrattle | The baseDeathrattle to perform | |
return | void |
public static StartTurn ( BasePlayer player ) : void | ||
player | BasePlayer | The player who is starting their turn |
return | void |
public static UnregisterDeathrattle ( |
||
source | The triggering card | |
return | void |