C# Class HearthAnalyzer.Core.Cards.BaseWeapon

Represents a weapon in Hearthstone
Inheritance: BaseCard, IAttacker, IDamageableEntity
Mostrar archivo Open project: kwluo90/HearthAnalyzer

Public Properties

Property Type Description
Durability int
WeaponOwner BasePlayer

Public Methods

Method Description
Attack ( IDamageableEntity target ) : void
Die ( ) : void

This kills the weapon

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

Protected Methods

Method Description
BaseWeapon ( ) : System

Method Details

Attack() public method

public Attack ( IDamageableEntity target ) : void
target IDamageableEntity
return void

BaseWeapon() protected method

protected BaseWeapon ( ) : System
return System

Die() public method

This kills the weapon
public Die ( ) : void
return void

GetCurrentAttackPower() public method

public GetCurrentAttackPower ( ) : int
return int

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

Durability public_oe property

The amount of durability remaining on this weapon.
public int Durability
return int

WeaponOwner public_oe property

Back reference to the player that owns and has this weapon equipped
public BasePlayer WeaponOwner
return BasePlayer