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

Inheritance: Aura.Channel.Skills.Base.CombatSkillHandler, IInitiableSkillHandler
Afficher le fichier Open project: aura-project/aura

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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
Résultat void

GetCritChance() protected méthode

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
Résultat float

GetDamage() protected méthode

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

Init() public méthode

Subscribes handlers to events required for training.
public Init ( ) : void
Résultat void

OnCreatureAttackedByPlayer() public méthode

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

Prepare() public méthode

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
Résultat bool

Ready() public méthode

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
Résultat bool

Use() public méthode

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