C# 클래스 SagaMap.Skills.SkillHandler

파일 보기 프로젝트 열기: Willyham/SagaRO2 1 사용 예제들

공개 메소드들

메소드 설명
AddPassiveSkillEXP ( ActorPC pc, string StatusName, uint skillbaseID, uint exp ) : void

Add EXP to a Passive Skill of a player

AddPassiveStatus ( Actor pc, string StatusName, byte WeaponType, PassiveSkillStatus &Status, PassiveSkillStatus callback, PassiveSkillStatus DeactFunc ) : PassiveStatusAddResult

Add a passive status to a Actor

AddPassiveStatus ( Actor pc, string StatusName, byte WeaponType, Tasks &Status ) : PassiveStatusAddResult

Add a passive status to a Actor

AddPassiveStatus ( Actor pc, string StatusName, byte WeaponType, Tasks &Status, Tasks DeactFunc ) : PassiveStatusAddResult

Add a passive status to a Actor

AddSkillEXP ( ActorPC &pc, uint skillid, uint exp ) : void

Add EXP to a skill of a player

AddStatusIcon ( Actor actor, uint skillid, uint time ) : void

Add a Status Icon to an actor

ApplyAddition ( Actor actor, Addition addition ) : void

Apply a addition to an actor

CalcBattleStatus ( Actor &actor ) : void

Calculte the battlestatus of an actor

CalcCrit ( Actor sActor, Actor dActor, Map args, Skills type ) : Map.SkillArgs.AttackResult

Calculate the Attack result of a attack(miss,normal,critical)

CalcDamage ( Actor &sActor, Actor &dActor, Map args ) : uint

Damage calculation for skills not defined in skill table

CalcHPSP ( ActorPC &pc ) : void
CastPassivSkill ( ActorPC &pc ) : void
CastSkill ( Actor &sActor, Actor &dActor, Map &args ) : void
CheckSkillSP ( ActorPC pc, SkillIDs skillid ) : bool

Check if the player has enough sp to cast skill, and decrease SP by the required amount

EquiptLoseDurabilityOnDeath ( ActorPC pc ) : void
GainLP ( ActorPC pc, SkillIDs skillID ) : void

Increases Players LP by 1 point

GainLP ( ActorPC pc, SkillIDs skillID, byte point ) : void

Increase Players LP

GetPCATK ( ActorPC pc, int &min, int &max ) : void
GetSkillAtkBonus ( SkillIDs id ) : int
GetSkillMAtkBonus ( SkillIDs id ) : int
GetSkillRAtkBonus ( SkillIDs id ) : int
IsCritical ( Actor &sActor, Actor &dActor, Map args ) : Map.SkillArgs.AttackResult
MagicalAttack ( Actor &sActor, Actor &dActor, uint damage, AttackElements element, Map &args ) : uint
PhysicalAttack ( Actor &sActor, Actor &dActor, uint damage, AttackElements element, Map &args ) : uint
RemoveAddition ( Actor actor, Addition addition ) : void
RemoveAddition ( Actor actor, Addition addition, bool removeOnly ) : void
RemoveStatusIcon ( Actor actor, uint skillid ) : void

Remove a status icon of a actor

SendAddSkill ( ActorPC pc, uint skillid, byte slot ) : void

Add a skill to Skill List

SendAllStatusIcons ( ActorPC pc, Actor actor ) : void

Send all status icons of a Actor to player

SendDeleteSkill ( ActorPC pc, uint skillid ) : void

Delete a skill from Skill list

SendDeleteSpecial ( ActorPC pc, uint skillid ) : void

Delete a skill from Special skill list

SetSkillFailed ( Map &arg ) : void

Set the skill argument to "Skill casting failed"

SkillAddSpecial ( ActorPC &sActor, uint skillid ) : SkillAddResault

Learn a skill

SkillResetOnJobChange ( ActorPC pc ) : void

Reset skills of a PC on job change. Move all skills into Inactive Skill table and get all skills in inactive skill table for current job

WeaponLoseDura ( ActorPC pc, ushort amount ) : void

Decrease the Durability of the active weapon of a player

비공개 메소드들

메소드 설명
CalcAtk ( Actor &actor ) : void
CalcAtkNPC ( ActorNPC &npc ) : void
CalcAtkPC ( ActorPC &pc ) : void
CalcFlee ( Actor &actor ) : void
CalcFleeNPC ( ActorNPC &npc ) : void
CalcFleePC ( ActorPC &pc ) : void
CalcHit ( Actor &actor ) : void
CalcHitNPC ( ActorNPC &npc ) : void
CalcHitPC ( ActorPC &pc ) : void
CalcMAtk ( Actor &actor ) : void
CalcMAtkNPC ( ActorNPC &npc ) : void
CalcMAtkPC ( ActorPC &pc ) : void
CalcRAtkPC ( ActorPC &pc ) : void
CheckSkill ( ActorPC pc, uint baseid, int maxlv ) : bool
EquiptLoseDurability ( ActorPC pc ) : void
GetJobHPBonus ( JobType job ) : short
GetJobSPBonus ( JobType job ) : ushort
LoseDura ( ActorPC pc, SagaDB slot ) : void
LoseDura ( ActorPC pc, SagaDB slot, float percentage ) : void
PCPotionHeal ( ActorPC &targetPC, ushort hp, ushort hp2, ushort sp, ushort sp2, int lifetime, int period, Map args ) : void
SkillAttack ( Actor &sActor, Actor &dActor, uint damage, Map &args ) : void

메소드 상세

AddPassiveSkillEXP() 공개 정적인 메소드

Add EXP to a Passive Skill of a player
public static AddPassiveSkillEXP ( ActorPC pc, string StatusName, uint skillbaseID, uint exp ) : void
pc SagaDB.Actors.ActorPC Player
StatusName string Status Name
skillbaseID uint BaseID of a certain skill
exp uint Maximum of exp to add
리턴 void

AddPassiveStatus() 공개 정적인 메소드

Add a passive status to a Actor
public static AddPassiveStatus ( Actor pc, string StatusName, byte WeaponType, PassiveSkillStatus &Status, PassiveSkillStatus callback, PassiveSkillStatus DeactFunc ) : PassiveStatusAddResult
pc SagaDB.Actors.Actor Actor
StatusName string Name of the Status
WeaponType byte Weapon type
Status PassiveSkillStatus Status instance
callback PassiveSkillStatus Delegate to a callback function
DeactFunc PassiveSkillStatus Delegate to a deactivation function
리턴 PassiveStatusAddResult

AddPassiveStatus() 공개 정적인 메소드

Add a passive status to a Actor
public static AddPassiveStatus ( Actor pc, string StatusName, byte WeaponType, Tasks &Status ) : PassiveStatusAddResult
pc SagaDB.Actors.Actor Actor
StatusName string Name of the Status
WeaponType byte Weapon type
Status Tasks Status instance
리턴 PassiveStatusAddResult

AddPassiveStatus() 공개 정적인 메소드

Add a passive status to a Actor
public static AddPassiveStatus ( Actor pc, string StatusName, byte WeaponType, Tasks &Status, Tasks DeactFunc ) : PassiveStatusAddResult
pc SagaDB.Actors.Actor Player
StatusName string Name of the Status
WeaponType byte Weapon type
Status Tasks Status instance
DeactFunc Tasks Delegate to a deactivation function
리턴 PassiveStatusAddResult

AddSkillEXP() 공개 정적인 메소드

Add EXP to a skill of a player
public static AddSkillEXP ( ActorPC &pc, uint skillid, uint exp ) : void
pc SagaDB.Actors.ActorPC Player
skillid uint Skill ID
exp uint Maximum of exp to add
리턴 void

AddStatusIcon() 공개 정적인 메소드

Add a Status Icon to an actor
public static AddStatusIcon ( Actor actor, uint skillid, uint time ) : void
actor SagaDB.Actors.Actor
skillid uint
time uint
리턴 void

ApplyAddition() 공개 정적인 메소드

Apply a addition to an actor
public static ApplyAddition ( Actor actor, Addition addition ) : void
actor SagaDB.Actors.Actor Actor which the addition should be applied to
addition Addition Addition to be applied
리턴 void

CalcBattleStatus() 공개 정적인 메소드

Calculte the battlestatus of an actor
public static CalcBattleStatus ( Actor &actor ) : void
actor SagaDB.Actors.Actor
리턴 void

CalcCrit() 공개 정적인 메소드

Calculate the Attack result of a attack(miss,normal,critical)
public static CalcCrit ( Actor sActor, Actor dActor, Map args, Skills type ) : Map.SkillArgs.AttackResult
sActor SagaDB.Actors.Actor Source Actor
dActor SagaDB.Actors.Actor Target Actor
args SagaMap.Map Argument contains skill infomation
type Skills Attack type
리턴 Map.SkillArgs.AttackResult

CalcDamage() 공개 정적인 메소드

Damage calculation for skills not defined in skill table
public static CalcDamage ( Actor &sActor, Actor &dActor, Map args ) : uint
sActor SagaDB.Actors.Actor
dActor SagaDB.Actors.Actor
args SagaMap.Map
리턴 uint

CalcHPSP() 공개 정적인 메소드

public static CalcHPSP ( ActorPC &pc ) : void
pc SagaDB.Actors.ActorPC
리턴 void

CastPassivSkill() 공개 정적인 메소드

public static CastPassivSkill ( ActorPC &pc ) : void
pc SagaDB.Actors.ActorPC
리턴 void

CastSkill() 공개 정적인 메소드

public static CastSkill ( Actor &sActor, Actor &dActor, Map &args ) : void
sActor SagaDB.Actors.Actor
dActor SagaDB.Actors.Actor
args SagaMap.Map
리턴 void

CheckSkillSP() 공개 정적인 메소드

Check if the player has enough sp to cast skill, and decrease SP by the required amount
public static CheckSkillSP ( ActorPC pc, SkillIDs skillid ) : bool
pc SagaDB.Actors.ActorPC Player
skillid SkillIDs Skill ID
리턴 bool

EquiptLoseDurabilityOnDeath() 공개 정적인 메소드

public static EquiptLoseDurabilityOnDeath ( ActorPC pc ) : void
pc SagaDB.Actors.ActorPC
리턴 void

GainLP() 공개 정적인 메소드

Increases Players LP by 1 point
public static GainLP ( ActorPC pc, SkillIDs skillID ) : void
pc SagaDB.Actors.ActorPC Player
skillID SkillIDs ID of the skill that caused the increasement of LP
리턴 void

GainLP() 공개 정적인 메소드

Increase Players LP
public static GainLP ( ActorPC pc, SkillIDs skillID, byte point ) : void
pc SagaDB.Actors.ActorPC Player
skillID SkillIDs ID of the skill that caused the increasement of LP
point byte Amount
리턴 void

GetPCATK() 공개 정적인 메소드

public static GetPCATK ( ActorPC pc, int &min, int &max ) : void
pc SagaDB.Actors.ActorPC
min int
max int
리턴 void

GetSkillAtkBonus() 공개 정적인 메소드

public static GetSkillAtkBonus ( SkillIDs id ) : int
id SkillIDs
리턴 int

GetSkillMAtkBonus() 공개 정적인 메소드

public static GetSkillMAtkBonus ( SkillIDs id ) : int
id SkillIDs
리턴 int

GetSkillRAtkBonus() 공개 정적인 메소드

public static GetSkillRAtkBonus ( SkillIDs id ) : int
id SkillIDs
리턴 int

IsCritical() 공개 정적인 메소드

public static IsCritical ( Actor &sActor, Actor &dActor, Map args ) : Map.SkillArgs.AttackResult
sActor SagaDB.Actors.Actor
dActor SagaDB.Actors.Actor
args SagaMap.Map
리턴 Map.SkillArgs.AttackResult

MagicalAttack() 공개 정적인 메소드

public static MagicalAttack ( Actor &sActor, Actor &dActor, uint damage, AttackElements element, Map &args ) : uint
sActor SagaDB.Actors.Actor
dActor SagaDB.Actors.Actor
damage uint
element AttackElements
args SagaMap.Map
리턴 uint

PhysicalAttack() 공개 정적인 메소드

public static PhysicalAttack ( Actor &sActor, Actor &dActor, uint damage, AttackElements element, Map &args ) : uint
sActor SagaDB.Actors.Actor
dActor SagaDB.Actors.Actor
damage uint
element AttackElements
args SagaMap.Map
리턴 uint

RemoveAddition() 공개 정적인 메소드

public static RemoveAddition ( Actor actor, Addition addition ) : void
actor SagaDB.Actors.Actor
addition Addition
리턴 void

RemoveAddition() 공개 정적인 메소드

public static RemoveAddition ( Actor actor, Addition addition, bool removeOnly ) : void
actor SagaDB.Actors.Actor
addition Addition
removeOnly bool
리턴 void

RemoveStatusIcon() 공개 정적인 메소드

Remove a status icon of a actor
public static RemoveStatusIcon ( Actor actor, uint skillid ) : void
actor SagaDB.Actors.Actor Actor
skillid uint Icon to be removed
리턴 void

SendAddSkill() 공개 정적인 메소드

Add a skill to Skill List
public static SendAddSkill ( ActorPC pc, uint skillid, byte slot ) : void
pc SagaDB.Actors.ActorPC Player
skillid uint Skill to be added
slot byte Slot
리턴 void

SendAllStatusIcons() 공개 정적인 메소드

Send all status icons of a Actor to player
public static SendAllStatusIcons ( ActorPC pc, Actor actor ) : void
pc SagaDB.Actors.ActorPC Player
actor SagaDB.Actors.Actor Actor
리턴 void

SendDeleteSkill() 공개 정적인 메소드

Delete a skill from Skill list
public static SendDeleteSkill ( ActorPC pc, uint skillid ) : void
pc SagaDB.Actors.ActorPC Player
skillid uint Skill to be removed
리턴 void

SendDeleteSpecial() 공개 정적인 메소드

Delete a skill from Special skill list
public static SendDeleteSpecial ( ActorPC pc, uint skillid ) : void
pc SagaDB.Actors.ActorPC Player
skillid uint Skill to be removed
리턴 void

SetSkillFailed() 공개 정적인 메소드

Set the skill argument to "Skill casting failed"
public static SetSkillFailed ( Map &arg ) : void
arg SagaMap.Map
리턴 void

SkillAddSpecial() 공개 정적인 메소드

Learn a skill
public static SkillAddSpecial ( ActorPC &sActor, uint skillid ) : SkillAddResault
sActor SagaDB.Actors.ActorPC Player
skillid uint Skill to be learned
리턴 SkillAddResault

SkillResetOnJobChange() 공개 정적인 메소드

Reset skills of a PC on job change. Move all skills into Inactive Skill table and get all skills in inactive skill table for current job
public static SkillResetOnJobChange ( ActorPC pc ) : void
pc SagaDB.Actors.ActorPC target PC
리턴 void

WeaponLoseDura() 공개 정적인 메소드

Decrease the Durability of the active weapon of a player
public static WeaponLoseDura ( ActorPC pc, ushort amount ) : void
pc SagaDB.Actors.ActorPC Player
amount ushort Amount of durability to lose
리턴 void