C# Class Aura.Channel.Skills.Skill

Datei anzeigen Open project: aura-project/aura Class Usage Examples

Public Properties

Property Type Description
Info Aura.Mabi.Structs.SkillInfo

Public Methods

Method Description
Activate ( SkillFlags flags ) : void

Activates given flag(s).

ChangeRank ( SkillRank rank ) : void

Changes rank, resets experience, loads rank data.

Deactivate ( SkillFlags flags ) : void

Deativates given flag(s).

GetCastTime ( ) : int

Returns cast time of skill, specific for its creature.

GetExpBonus ( ) : int

Returns exp that the creature would get for a rank up of this skill in its current state.

The formula is entirely custom and is based on a very small amout of test values, which it doesn't match 100% either. However, the results seem reasonable, they appear to be close to officials, and going by the lack of research, nobody ever bothered to take a closer look at this feature anyway.

Has ( SkillFlags flags ) : bool

Returns true if skill has the given flags.

Is ( ) : bool

Returns true if the skill has one of the given ids.

LoadRankData ( ) : void

Loads rank data, based on current rank.

Skill ( Creature creature, SkillId id, SkillRank rank, int race ) : System

New Skill.

Train ( int condition, int amount = 1 ) : void

Increases training condition count.

UpdateExperience ( ) : float

Updates exp and returns gained amount.

Private Methods

Method Description
CheckMaster ( ) : void

Enables master title if skill is on r1 and fully trained.

Method Details

Activate() public method

Activates given flag(s).
public Activate ( SkillFlags flags ) : void
flags SkillFlags
return void

ChangeRank() public method

Changes rank, resets experience, loads rank data.
public ChangeRank ( SkillRank rank ) : void
rank SkillRank
return void

Deactivate() public method

Deativates given flag(s).
public Deactivate ( SkillFlags flags ) : void
flags SkillFlags
return void

GetCastTime() public method

Returns cast time of skill, specific for its creature.
public GetCastTime ( ) : int
return int

GetExpBonus() public method

Returns exp that the creature would get for a rank up of this skill in its current state.
The formula is entirely custom and is based on a very small amout of test values, which it doesn't match 100% either. However, the results seem reasonable, they appear to be close to officials, and going by the lack of research, nobody ever bothered to take a closer look at this feature anyway.
public GetExpBonus ( ) : int
return int

Has() public method

Returns true if skill has the given flags.
public Has ( SkillFlags flags ) : bool
flags SkillFlags
return bool

Is() public method

Returns true if the skill has one of the given ids.
public Is ( ) : bool
return bool

LoadRankData() public method

Loads rank data, based on current rank.
public LoadRankData ( ) : void
return void

Skill() public method

New Skill.
public Skill ( Creature creature, SkillId id, SkillRank rank, int race ) : System
creature Aura.Channel.World.Entities.Creature
id SkillId
rank SkillRank
race int
return System

Train() public method

Increases training condition count.
public Train ( int condition, int amount = 1 ) : void
condition int
amount int
return void

UpdateExperience() public method

Updates exp and returns gained amount.
public UpdateExperience ( ) : float
return float

Property Details

Info public_oe property

Information about the skill, serialized to packets.
public SkillInfo,Aura.Mabi.Structs Info
return Aura.Mabi.Structs.SkillInfo