C# Class Aura.Channel.Skills.Life.Gathering

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

Public Methods

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

Cancels skill, or rather the animation.

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

Completes skill, handling the whole item gathering process.

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

Prepares skill, skips right to used.

Doesn't check anything, like what you can gather with what, because at this point there's no chance for abuse.

Private Methods

Method Description
CheckHand ( string tag, Item item ) : bool

Returns true if item is correct for collect tag.

DoComplete ( Creature creature, long entityId, int collectId, bool success, short failCode ) : void

Sends use motion and SkillComplete.

GetSuccessChance ( Creature creature, CollectingData collectData ) : float

Returns chance for a successful gathering.

GetTargetEntity ( Region region, long entityId ) : Entity

Returns entity by id or null.

Method Details

Cancel() public method

Cancels skill, or rather the animation.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
return void

Complete() public method

Completes skill, handling the whole item gathering process.
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

Prepare() public method

Prepares skill, skips right to used.
Doesn't check anything, like what you can gather with what, because at this point there's no chance for abuse.
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