C# 클래스 Aura.Channel.World.Entities.Creatures.CreatureSkills

파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
Add ( Skill skill ) : bool

Adds skill silently. Returns false if the skill already exists, with a rank that's equal or higher.

Add ( SkillId skillId, SkillRank skillRank, int raceId ) : bool

Adds skill silently. Returns false if the skill already exists, with a rank that's equal or higher.

AddBonuses ( Skill skill ) : void

Adds stat bonuses for skill's rank to creature.

Callback ( SkillId skillId ) : void

Runs and resets callback (it one was set)

Callback ( SkillId skillId, System.Action action ) : void

Adds callback

CancelActiveSkill ( ) : void

Cancels active skill.

SkillCancel is sent in any case, even if something goes wrong, like the method not being implemented. Unless no skill is active.

CancleAfter ( SkillId skillId, System.TimeSpan timeSpan ) : void

Cancels given skill if it's active after the given time span.

CountRanks ( ) : int

Sums the ranks of the given skills.

CreatureSkills ( Creature creature ) : System

New skill manager for creature.

Get ( SkillId id ) : Skill

Returns skill by id, or null.

GetList ( bool>.Func predicate = null ) : ICollection

Returns new list of all skills.

GetSafe ( SkillId id ) : Skill
Give ( SkillId id, SkillRank rank ) : void

Adds skill at rank, or updates it. Sends appropriate packets.

Has ( SkillId id, SkillRank rank = SkillRank.Novice ) : bool

Returns true if creature has skill and its rank is equal or greater than the given rank.

Is ( SkillId id, SkillRank rank ) : bool

Returns true if rank of skill is equal.

IsActive ( SkillId skillId ) : bool

Returns true if the specified skill is active (somewhere between Prepare and Complete/Cancel).

IsReady ( SkillId skillId ) : bool

Returns true if the specified skill is active and on state "Ready".

OnSecondsTimeTick ( ErinnTime time ) : void

Checks for skills to auto cancel.

RemoveSilent ( SkillId skillId ) : bool

Removes skill with given id and its bonuses, without updating the client.

If we want a non-silent version of this, we need to know the skill removal packet.

Train ( SkillId skillId, SkillRank rank, int condition, int amount = 1 ) : void

Trains condition in skill if it has the given rank.

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

Trains condition in skill.

비공개 메소드들

메소드 설명
RemoveBonuses ( Skill skill ) : void

Removes stat bonuses for skill's rank from creature. (To be run before changing a skills rank.)

UpdateHighestSkills ( ) : void

Updates highest skill CPs.

메소드 상세

Add() 공개 메소드

Adds skill silently. Returns false if the skill already exists, with a rank that's equal or higher.
public Add ( Skill skill ) : bool
skill Aura.Channel.Skills.Skill
리턴 bool

Add() 공개 메소드

Adds skill silently. Returns false if the skill already exists, with a rank that's equal or higher.
public Add ( SkillId skillId, SkillRank skillRank, int raceId ) : bool
skillId SkillId
skillRank SkillRank
raceId int
리턴 bool

AddBonuses() 공개 메소드

Adds stat bonuses for skill's rank to creature.
public AddBonuses ( Skill skill ) : void
skill Aura.Channel.Skills.Skill
리턴 void

Callback() 공개 메소드

Runs and resets callback (it one was set)
public Callback ( SkillId skillId ) : void
skillId SkillId
리턴 void

Callback() 공개 메소드

Adds callback
public Callback ( SkillId skillId, System.Action action ) : void
skillId SkillId
action System.Action
리턴 void

CancelActiveSkill() 공개 메소드

Cancels active skill.
SkillCancel is sent in any case, even if something goes wrong, like the method not being implemented. Unless no skill is active.
public CancelActiveSkill ( ) : void
리턴 void

CancleAfter() 공개 메소드

Cancels given skill if it's active after the given time span.
public CancleAfter ( SkillId skillId, System.TimeSpan timeSpan ) : void
skillId SkillId
timeSpan System.TimeSpan
리턴 void

CountRanks() 공개 메소드

Sums the ranks of the given skills.
public CountRanks ( ) : int
리턴 int

CreatureSkills() 공개 메소드

New skill manager for creature.
public CreatureSkills ( Creature creature ) : System
creature Creature
리턴 System

Get() 공개 메소드

Returns skill by id, or null.
public Get ( SkillId id ) : Skill
id SkillId
리턴 Aura.Channel.Skills.Skill

GetList() 공개 메소드

Returns new list of all skills.
public GetList ( bool>.Func predicate = null ) : ICollection
predicate bool>.Func
리턴 ICollection

GetSafe() 공개 메소드

public GetSafe ( SkillId id ) : Skill
id SkillId
리턴 Aura.Channel.Skills.Skill

Give() 공개 메소드

Adds skill at rank, or updates it. Sends appropriate packets.
public Give ( SkillId id, SkillRank rank ) : void
id SkillId
rank SkillRank
리턴 void

Has() 공개 메소드

Returns true if creature has skill and its rank is equal or greater than the given rank.
public Has ( SkillId id, SkillRank rank = SkillRank.Novice ) : bool
id SkillId
rank SkillRank
리턴 bool

Is() 공개 메소드

Returns true if rank of skill is equal.
public Is ( SkillId id, SkillRank rank ) : bool
id SkillId
rank SkillRank
리턴 bool

IsActive() 공개 메소드

Returns true if the specified skill is active (somewhere between Prepare and Complete/Cancel).
public IsActive ( SkillId skillId ) : bool
skillId SkillId
리턴 bool

IsReady() 공개 메소드

Returns true if the specified skill is active and on state "Ready".
public IsReady ( SkillId skillId ) : bool
skillId SkillId
리턴 bool

OnSecondsTimeTick() 공개 메소드

Checks for skills to auto cancel.
public OnSecondsTimeTick ( ErinnTime time ) : void
time Aura.Mabi.ErinnTime
리턴 void

RemoveSilent() 공개 메소드

Removes skill with given id and its bonuses, without updating the client.
If we want a non-silent version of this, we need to know the skill removal packet.
public RemoveSilent ( SkillId skillId ) : bool
skillId SkillId
리턴 bool

Train() 공개 메소드

Trains condition in skill if it has the given rank.
public Train ( SkillId skillId, SkillRank rank, int condition, int amount = 1 ) : void
skillId SkillId
rank SkillRank Rank to which the training is limited.
condition int Condition nr (1-9)
amount int
리턴 void

Train() 공개 메소드

Trains condition in skill.
public Train ( SkillId skillId, int condition, int amount = 1 ) : void
skillId SkillId
condition int Condition nr (1-9)
amount int
리턴 void