protected override void setParameter() { skill = DebufSkillMasterManager.getInstance().getDebufSkillFromId(OBSERVE_SKILL_ID); this.effect = skill.getRawBonus(); this.cost = skill.getRawCost(); this.delay = skill.getRawDelay(); }
public bool hasActiveSkill(int id, ActiveSkillType activeType) { var skills = player.getActiveSkills(); switch (activeType) { case ATTACK: var targetAttackSkill = AttackSkillMasterManager.getInstance().getAttackSkillFromId(id); return(skills.Contains(targetAttackSkill)); case BUF: var targetBufSkill = BufSkillMasterManager.getInstance().getBufSkillFromId(id); return(skills.Contains(targetBufSkill)); case DEBUF: var targetDebufSkill = DebufSkillMasterManager.getInstance().getDebufSkillFromId(id); return(skills.Contains(targetDebufSkill)); case HEAL: var targetHealSkill = HealSkillMasterManager.getInstance().getHealSkillFromId(id); return(skills.Contains(targetHealSkill)); case MOVE: var targetMoveSkill = MoveSkillMasterManager.getInstance().getMoveSkillFromId(id); return(skills.Contains(targetMoveSkill)); } throw new NotSupportedException("unkown activeSkillType"); }
public void loadProgresses(int id) { EnemyMasterManager.getInstance().addProgress(id); AttackSkillMasterManager.getInstance().addProgress(id); HealSkillMasterManager.getInstance().addProgress(id); BufSkillMasterManager.getInstance().addProgress(id); DebufSkillMasterManager.getInstance().addProgress(id); HealItemMasterManager.getInstance().addProgress(id); ItemMaterialMasterManager.getInstance().addProgress(id); }
public static IActiveSkill getActiveSkill(ActiveSkillType type, int id) { switch (type) { case ActiveSkillType.ATTACK: return(AttackSkillMasterManager.getInstance().getAttackSkillFromId(id)); case ActiveSkillType.BUF: return(BufSkillMasterManager.getInstance().getBufSkillFromId(id)); case ActiveSkillType.DEBUF: return(DebufSkillMasterManager.getInstance().getDebufSkillFromId(id)); case ActiveSkillType.HEAL: return(HealSkillMasterManager.getInstance().getHealSkillFromId(id)); case ActiveSkillType.MOVE: return(MoveSkillMasterManager.getInstance().getMoveSkillFromId(id)); default: throw new NotSupportedException("unkonwn skillType " + type); } }