C# Class Aura.Channel.Skills.Combat.Windmill

Inheritance: IPreparable, IReadyable, IUseable, ICompletable, ICancelable, IInitiableSkillHandler
Mostrar archivo Open project: aura-project/aura

Public Methods

Method Description
Cancel ( Creature creature, Skill skill ) : void

Cancels WM.

Complete ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : void

Completes WM.

Init ( ) : void

Subscribes to events needed for training.

Prepare ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool

Prepares WM, empty skill init for only the loading sound.

Ready ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool

Readies WM, sets stack so we know when it was used.

Use ( Creature attacker, Skill skill, Aura.Shared.Network.Packet packet ) : void

Uses WM, attacking targets.

Use ( Creature attacker, Skill skill, long targetAreaId, int unkInt1, int unkInt2 ) : void

Uses WM, attacking targets.

Protected Methods

Method Description
GetRange ( Creature attacker, Skill skill ) : int

Calculates range based on equipment and skill rank.

Private Methods

Method Description
OnCreatureAttack ( TargetAction tAction ) : void

Handles WM training

OnCreatureAttacks ( AttackerAction aAction ) : void

Handles multi-target training.

Can't be handled in OnCreatureAttack because it would be done for every single target.

Method Details

Cancel() public method

Cancels WM.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
return void

Complete() public method

Completes WM.
public Complete ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
return void

GetRange() protected method

Calculates range based on equipment and skill rank.
protected GetRange ( Creature attacker, Skill skill ) : int
attacker Aura.Channel.World.Entities.Creature
skill Skill
return int

Init() public method

Subscribes to events needed for training.
public Init ( ) : void
return void

Prepare() public method

Prepares WM, empty skill init for only the loading sound.
public Prepare ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
return bool

Ready() public method

Readies WM, sets stack so we know when it was used.
public Ready ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
return bool

Use() public method

Uses WM, attacking targets.
public Use ( Creature attacker, Skill skill, Aura.Shared.Network.Packet packet ) : void
attacker Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
return void

Use() public method

Uses WM, attacking targets.
public Use ( Creature attacker, Skill skill, long targetAreaId, int unkInt1, int unkInt2 ) : void
attacker Aura.Channel.World.Entities.Creature
skill Skill
targetAreaId long
unkInt1 int
unkInt2 int
return void