Beispiel #1
0
        private static string GetPointsObjName(EClass pClass)
        {
            string prefix = pClass.ToString();
            string suffix = "Points";

            return(prefix + suffix);
        }
Beispiel #2
0
        /// <summary>
        /// Converts the class from eAs system to the client system
        /// </summary>
        /// <param name="cls"></param>
        /// <returns></returns>
        public static EClientClass Convert(this EClass cls)
        {
            string       memberName  = cls.ToString();
            EClientClass clientClass = (EClientClass)Enum.Parse(typeof(EClientClass), memberName);

            return(clientClass);
        }
Beispiel #3
0
 public override string ToString()
 {
     return(base.ToString() + string.Format("Level={0} {1} length={2}",
                                            Level == null?"null":Level.Value.ToString(),
                                            RClass.ToString(),
                                            Length.ToString()
                                            ));
 }
Beispiel #4
0
        public static string ToName(this EClass Class)
        {
            switch (Class)
            {
            case EClass.Archer_Elf:
                return("Bogenschütze (Elf)");

            case EClass.Mage_Elf:
                return("Magus (Elf)");

            case EClass.Ranger_Elf:
                return("Waldläufer (Elf)");

            case EClass.Defender_Human:
                return("Verteidiger (Mensch)");

            case EClass.Fighter_Human:
                return("Kämpfer (Mensch)");

            case EClass.Priest_Human:
                return("Priester (Mensch)");

            case EClass.Assasin_Vail:
                return("Atentäter (Vail)");

            case EClass.Oracle_Vail:
                return("Orakel (Vail)");

            case EClass.Pagan_Vail:
                return("Heide (Vail)");

            case EClass.Warrior_Nordein:
                return("Krieger (Nordein)");

            case EClass.Guardian_Nordein:
                return("Wächter (Nordein)");

            case EClass.Hunter_Nordein:
                return("Jäger (Nordein)");

            default:
                return("UNK \"" + Class.ToString() + "\"");
            }
        }