public int GetSkillScore(Skill targetSkill)
    {
        ActiveSkillCategory activeSkillCategory = GetActiveSkillCategory(targetSkill.SkillCategory);
        ActiveSkill         activeSkill         = activeSkillCategory.GetActiveSkill(targetSkill);

        return(activeSkill.GetScore());
    }
示例#2
0
    public bool IsSkillActive(Skill targetSkill)
    {
        ActiveSkillCategory activeSkillCategory = data.GetActiveSkillCategory(targetSkill.SkillCategory);

        if (activeSkillCategory == null)
        {
            return(false);
        }
        ActiveSkill activeSkill = activeSkillCategory.GetActiveSkill(targetSkill);

        if (activeSkill == null)
        {
            return(false);
        }
        return(true);
    }
示例#3
0
    private ActiveSkill GetActiveSkill(Skill targetSkill)
    {
        ActiveSkillCategory activeSkillCategory = data.GetActiveSkillCategory(targetSkill.SkillCategory);

        if (activeSkillCategory == null)
        {
            throw new System.ArgumentException("No active skillcategory found for category " + targetSkill.SkillCategory);
        }
        ActiveSkill activeSkill = activeSkillCategory.GetActiveSkill(targetSkill);

        if (activeSkill == null)
        {
            throw new System.ArgumentException("No active skill found for skill " + targetSkill);
        }
        return(activeSkill);
    }