C# Класс Aura.Channel.Skills.Combat.Smash

Наследование: Aura.Channel.Skills.Base.CombatSkillHandler, IInitiableSkillHandler
Показать файл Открыть проект

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

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

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

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

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

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

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
Результат void

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

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
Результат float

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

Returns the raw damage to be done.
protected GetDamage ( Creature attacker, Skill skill ) : float
attacker Aura.Channel.World.Entities.Creature
skill Skill
Результат float

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

Subscribes handlers to events required for training.
public Init ( ) : void
Результат void

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

Training, called when someone attacks something.
public OnCreatureAttackedByPlayer ( TargetAction tAction ) : void
tAction TargetAction
Результат void

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

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
Результат bool

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

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
Результат bool

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

Handles skill usage.
public Use ( Creature attacker, Skill skill, long targetEntityId ) : CombatSkillResult
attacker Aura.Channel.World.Entities.Creature
skill Skill
targetEntityId long
Результат CombatSkillResult