コード例 #1
0
 public override string ToString()
 {
     return(BaseSkill.ToString() + " " + Level.ToRomanString());
 }
コード例 #2
0
    /*public string TranslateSpecialization()
    {
        return "";
    }*/

    public string TranslateSkillCategory(BaseSkill.SkillCategory category)
    {
        string categoryString = "";

        switch (category)
        {
            case BaseSkill.SkillCategory.COMBAT:
                categoryString = "Combat";
                break;
            case BaseSkill.SkillCategory.GENERAL:
                categoryString = "General";
                break;
            case BaseSkill.SkillCategory.KNOWLEDGE:
                categoryString = "Knowledge";
                break;
            default:
                Debug.Log("Skill category could not be identified: " + category.ToString());
                break;
        }
        return categoryString;
    }
コード例 #3
0
 public string TranslateSkillCharacteristic(BaseSkill.SkillCharacteristic characteristic)
 {
     string characteristicString = "";
     switch (characteristic)
     {
         case BaseSkill.SkillCharacteristic.AGILITY:
             characteristicString = "Agility";
             break;
         case BaseSkill.SkillCharacteristic.BRAWN:
             characteristicString = "Brawn";
             break;
         case BaseSkill.SkillCharacteristic.CUNNING:
             characteristicString = "Cunning";
             break;
         case BaseSkill.SkillCharacteristic.INTELLECT:
             characteristicString = "Intellect";
             break;
         case BaseSkill.SkillCharacteristic.PRESENCE:
             characteristicString = "Presence";
             break;
         case BaseSkill.SkillCharacteristic.WILLPOWER:
             characteristicString = "Willpower";
             break;
         default:
             Debug.LogWarning("Skill characteristic could not be identified: " + characteristic.ToString());
             break;
     }
     return characteristicString;
 }
コード例 #4
0
 public override string ToString()
 {
     return("{1:D} SP in {0}".F(BaseSkill.ToString(), SkillPoints));
 }