public use ( KBEngine caster, KBEngine.SCObject target ) : void | ||
caster | KBEngine | |
target | KBEngine.SCObject | |
Résultat | void |
public bool useTargetSkill(Int32 skillID, Int32 targetID) { Skill skill = SkillBox.inst.get(skillID); if (skill == null) { return(false); } SCEntityObject scobject = new SCEntityObject(targetID); if (skill.validCast(this, scobject)) { skill.use(this, scobject); } return(true); }
public bool useTargetSkill(Int32 skillID, Int32 targetID) { Skill skill = SkillBox.inst.get(skillID); if (skill == null) { return(false); } SCEntityObject scobject = new SCEntityObject(targetID); if (skill.validCast(this, scobject)) { skill.use(this, scobject); return(true); } Dbg.DEBUG_MSG(className + "::useTargetSkill: skillID=" + skillID + ", targetID=" + targetID + ". is failed!"); return(false); }
//技能 public int useTargetSkill(Int32 skillID, Int32 targetID) { Skill skill = SkillBox.inst.get(skillID); if (skill == null) { return(4); } SCEntityObject scobject = new SCEntityObject(targetID); int errorCode = skill.validCast(this, scobject); if (errorCode == 0) { skill.use(this, scobject); return(errorCode); } //Dbg.DEBUG_MSG(className + "::useTargetSkill: skillID=" + skillID + ", targetID=" + targetID + ". is failed!"); return(errorCode); }