C# Класс HearthAnalyzer.Core.Cards.BaseMinion

Represents a minion at the most basic level
Наследование: BaseCard, IAttacker, IDamageableEntity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BonusHealth int
BonusSpellPower int
CurrentHealth int
MaxHealth int
StatusEffects MinionStatusEffects

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
BaseMinion ( ) : System

Описание методов

ApplyStatusEffects() публичный Метод

Applies the provided effects to the minion
public ApplyStatusEffects ( MinionStatusEffects effects ) : void
effects MinionStatusEffects The effects to apply
Результат void

Attack() публичный Метод

Attacks another target
public Attack ( IDamageableEntity target ) : void
target IDamageableEntity The target to attack
Результат void

BaseMinion() защищенный Метод

protected BaseMinion ( ) : System
Результат System

Die() публичный Метод

Called when a minion dies
public Die ( ) : void
Результат void

GetCurrentAttackPower() публичный Метод

public GetCurrentAttackPower ( ) : int
Результат int

RemoveStatusEffects() публичный Метод

Removes the specified effects from the minion
public RemoveStatusEffects ( MinionStatusEffects effects ) : void
effects MinionStatusEffects The effects to remove
Результат void

ResetAttacksThisTurn() публичный Метод

Resets the number of attacks this minion has performed this turn.
public ResetAttacksThisTurn ( ) : void
Результат void

Silence() публичный Метод

Called when a minion is silenced
public Silence ( ) : void
Результат void

TakeBuff() публичный Метод

public TakeBuff ( int attackBuff, int healthBuff ) : void
attackBuff int
healthBuff int
Результат void

TakeDamage() публичный Метод

public TakeDamage ( int damage ) : void
damage int
Результат void

TakeHealing() публичный Метод

public TakeHealing ( int healAmount ) : void
healAmount int
Результат void

TakeTemporaryBuff() публичный Метод

public TakeTemporaryBuff ( int attackBuff ) : void
attackBuff int
Результат void

Описание свойств

BonusHealth публичное свойство

The bonus health of this card
public int BonusHealth
Результат int

BonusSpellPower публичное свойство

The amount of bonus spell power this minion adds
public int BonusSpellPower
Результат int

CurrentHealth публичное свойство

The current health of this card
public int CurrentHealth
Результат int

MaxHealth публичное свойство

The maximum health of this card
public int MaxHealth
Результат int

StatusEffects публичное свойство

Represents the current status effects applied to the card
public MinionStatusEffects StatusEffects
Результат MinionStatusEffects