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

Inheritance: Aura.Channel.Skills.Base.CombatSkillHandler, IInitiableSkillHandler
显示文件 Open project: aura-project/aura

Public Methods

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

Completes skill usage, called after it was used successfully.

Init ( ) : void

Subscribes handlers to events required for training.

OnCreatureAttackedByPlayer ( TargetAction tAction ) : void

Training, called when someone attacks something.

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

Prepares skill, called to start casting it.

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

Readies skill, called when casting is done.

Use ( Creature attacker, Skill skill, long targetEntityId ) : CombatSkillResult

Handles skill usage.

Protected Methods

Method Description
GetCritChance ( Creature attacker, Creature target, Skill skill ) : float

Returns the chance for a critical hit to happen.

GetDamage ( Creature attacker, Skill skill ) : float

Returns the raw damage to be done.

Method Details

Complete() public method

Completes skill usage, called after it was used successfully.
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

GetCritChance() protected method

Returns the chance for a critical hit to happen.
protected GetCritChance ( Creature attacker, Creature target, Skill skill ) : float
attacker Aura.Channel.World.Entities.Creature
target Aura.Channel.World.Entities.Creature
skill Skill
return float

GetDamage() protected method

Returns the raw damage to be done.
protected GetDamage ( Creature attacker, Skill skill ) : float
attacker Aura.Channel.World.Entities.Creature
skill Skill
return float

Init() public method

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

OnCreatureAttackedByPlayer() public method

Training, called when someone attacks something.
public OnCreatureAttackedByPlayer ( TargetAction tAction ) : void
tAction TargetAction
return void

Prepare() public method

Prepares skill, called to start casting it.
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 skill, called when casting is done.
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

Handles skill usage.
public Use ( Creature attacker, Skill skill, long targetEntityId ) : CombatSkillResult
attacker Aura.Channel.World.Entities.Creature
skill Skill
targetEntityId long
return CombatSkillResult