C# Class Aura.Channel.Skills.Skill

Afficher le fichier Open project: aura-project/aura Class Usage Examples

Méthodes publiques

Свойство Type Description
Info Aura.Mabi.Structs.SkillInfo

Méthodes publiques

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

Méthode Description
CheckMaster ( ) : void

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

Method Details

Activate() public méthode

Activates given flag(s).
public Activate ( SkillFlags flags ) : void
flags SkillFlags
Résultat void

ChangeRank() public méthode

Changes rank, resets experience, loads rank data.
public ChangeRank ( SkillRank rank ) : void
rank SkillRank
Résultat void

Deactivate() public méthode

Deativates given flag(s).
public Deactivate ( SkillFlags flags ) : void
flags SkillFlags
Résultat void

GetCastTime() public méthode

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

GetExpBonus() public méthode

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

Has() public méthode

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

Is() public méthode

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

LoadRankData() public méthode

Loads rank data, based on current rank.
public LoadRankData ( ) : void
Résultat void

Skill() public méthode

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

Train() public méthode

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

UpdateExperience() public méthode

Updates exp and returns gained amount.
public UpdateExperience ( ) : float
Résultat float

Property Details

Info public_oe property

Information about the skill, serialized to packets.
public SkillInfo,Aura.Mabi.Structs Info
Résultat Aura.Mabi.Structs.SkillInfo