C# Class Aura.Channel.Skills.Magic.LightningRod

Inheritance: ISkillHandler, IPreparable, IUseable, ICompletable, ICancelable, IInitiableSkillHandler
Exibir arquivo Open project: aura-project/aura

Public Methods

Method Description
Cancel ( Creature creature, Skill skill ) : void
Complete ( Creature creature, Skill skill, Packet packet ) : void
Init ( ) : void

Subscribes handlers to events required for training.

OnCreatureAttackedByPlayer ( TargetAction action ) : void

Training, called when someone attacks something.

OnCreatureAttacks ( AttackerAction aAction ) : void

Training, called when a creature attacks another creature(s)

Prepare ( Creature creature, Skill skill, Packet packet ) : bool

Prepares the skill

Use ( Creature attacker, Skill skill, Packet packet ) : void

Uses LightningRod

Private Methods

Method Description
RotatePoint ( Point point, Point pivot, double radians ) : Point

Method Details

Cancel() public method

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

Complete() public method

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

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 action ) : void
action TargetAction
return void

OnCreatureAttacks() public method

Training, called when a creature attacks another creature(s)
public OnCreatureAttacks ( AttackerAction aAction ) : void
aAction AttackerAction
return void

Prepare() public method

Prepares the skill
public Prepare ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
return bool

Use() public method

Uses LightningRod
public Use ( Creature attacker, Skill skill, Packet packet ) : void
attacker Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
return void