Exemple #1
0
        /// <summary>
        /// Returns string representation of the specified Character.EClass value.
        /// </summary>
        public static string GetClass(Character.EClass charClass)
        {
            switch (charClass)
            {
                case Character.EClass.WARRIOR:
                    return "Warrior";
                case Character.EClass.MAGE:
                    return "Mage";
                case Character.EClass.ROGUE:
                    return "Rogue";
                case Character.EClass.RANGER:
                    return "Ranger";
            }

            return "[UnknownClass]";
        }
Exemple #2
0
        /// <summary>
        /// Returns string representation of the specified Character.EOrigin value.
        /// </summary>
        public static string GetOrigin(Character.EOrigin origin)
        {
            switch (origin)
            {
                case Character.EOrigin.COMMONER:
                    return "Commoner";
                case Character.EOrigin.NOBLE:
                    return "Noble";
                case Character.EOrigin.BANDIT:
                    return "Bandit";
                case Character.EOrigin.INITIATE:
                    return "Initiate";
                case Character.EOrigin.OUTCAST:
                    return "Outcast";
                case Character.EOrigin.INVENTOR:
                    return "Inventor";
                case Character.EOrigin.THIEF:
                    return "Thief";
            }

            return "[UnknownOrigin]";
        }
Exemple #3
0
        /// <summary>
        /// Returns string representation of the specified Character.ERace value.
        /// </summary>
        public static string GetRace(Character.ERace race)
        {
            switch (race)
            {
                case Character.ERace.HUMAN:
                    return "Human";
                case Character.ERace.ELF:
                    return "Elf";
                case Character.ERace.GNOME:
                    return "Gnome";
            }

            return "[UnknownRace]";
        }