C# Class HearthAnalyzer.Core.Cards.BaseMinion

Represents a minion at the most basic level
Inheritance: BaseCard, IAttacker, IDamageableEntity
ファイルを表示 Open project: kwluo90/HearthAnalyzer Class Usage Examples

Public Properties

Property Type Description
BonusHealth int
BonusSpellPower int
CurrentHealth int
MaxHealth int
StatusEffects MinionStatusEffects

Public Methods

Method Description
ApplyStatusEffects ( MinionStatusEffects effects ) : void

Applies the provided effects to the minion

Attack ( IDamageableEntity target ) : void

Attacks another target

Die ( ) : void

Called when a minion dies

GetCurrentAttackPower ( ) : int
RemoveStatusEffects ( MinionStatusEffects effects ) : void

Removes the specified effects from the minion

ResetAttacksThisTurn ( ) : void

Resets the number of attacks this minion has performed this turn.

Silence ( ) : void

Called when a minion is silenced

TakeBuff ( int attackBuff, int healthBuff ) : void
TakeDamage ( int damage ) : void
TakeHealing ( int healAmount ) : void
TakeTemporaryBuff ( int attackBuff ) : void

Protected Methods

Method Description
BaseMinion ( ) : System

Method Details

ApplyStatusEffects() public method

Applies the provided effects to the minion
public ApplyStatusEffects ( MinionStatusEffects effects ) : void
effects MinionStatusEffects The effects to apply
return void

Attack() public method

Attacks another target
public Attack ( IDamageableEntity target ) : void
target IDamageableEntity The target to attack
return void

BaseMinion() protected method

protected BaseMinion ( ) : System
return System

Die() public method

Called when a minion dies
public Die ( ) : void
return void

GetCurrentAttackPower() public method

public GetCurrentAttackPower ( ) : int
return int

RemoveStatusEffects() public method

Removes the specified effects from the minion
public RemoveStatusEffects ( MinionStatusEffects effects ) : void
effects MinionStatusEffects The effects to remove
return void

ResetAttacksThisTurn() public method

Resets the number of attacks this minion has performed this turn.
public ResetAttacksThisTurn ( ) : void
return void

Silence() public method

Called when a minion is silenced
public Silence ( ) : void
return void

TakeBuff() public method

public TakeBuff ( int attackBuff, int healthBuff ) : void
attackBuff int
healthBuff int
return void

TakeDamage() public method

public TakeDamage ( int damage ) : void
damage int
return void

TakeHealing() public method

public TakeHealing ( int healAmount ) : void
healAmount int
return void

TakeTemporaryBuff() public method

public TakeTemporaryBuff ( int attackBuff ) : void
attackBuff int
return void

Property Details

BonusHealth public_oe property

The bonus health of this card
public int BonusHealth
return int

BonusSpellPower public_oe property

The amount of bonus spell power this minion adds
public int BonusSpellPower
return int

CurrentHealth public_oe property

The current health of this card
public int CurrentHealth
return int

MaxHealth public_oe property

The maximum health of this card
public int MaxHealth
return int

StatusEffects public_oe property

Represents the current status effects applied to the card
public MinionStatusEffects StatusEffects
return MinionStatusEffects