Ejemplo n.º 1
0
 public sysDevelopment(string n, string nl, sysTreeDevelopment st) : this(n, nl)
 {
     this.DevelopmentGroup = st;
     st.Paths.Add(this);
 }
Ejemplo n.º 2
0
        public static sysTreeDevelopment SeedTreeData(IList <sysDevelopment> sysDev)
        {
            sysTreeDevelopment sdpRoot, sdpClass, sdpRace, sdpProf, sdpHobby, sdpFight, sdpMagic, sdpCleric, sdpRogue, sdpHuman, sdpElven, sdpStunty, sdpPlanar, sdpMonster, sdpOpen, sdpClosed;

            //sysDevelopment Paths
            sdpRoot = new sysTreeDevelopment(nwdbConst.sysTreeNameDevelopment, -1);

            sdpClass = new sysTreeDevelopment("Class", 0);
            sdpRace  = new sysTreeDevelopment("Race", 1);
            sdpProf  = new sysTreeDevelopment("Profession", 2);
            sdpHobby = new sysTreeDevelopment("Hobby", 3);


            sdpRoot.AddChild(sdpClass);
            sdpRoot.AddChild(sdpRace);
            sdpRoot.AddChild(sdpProf);
            sdpRoot.AddChild(sdpHobby);


            sdpFight = new sysTreeDevelopment("Combat", 0);
            sdpClass.AddChild(sdpFight);
            sdpMagic = new sysTreeDevelopment("Magical", 0);
            sdpClass.AddChild(sdpMagic);
            sdpCleric = new sysTreeDevelopment("Spiritual", 0);
            sdpClass.AddChild(sdpCleric);
            sdpRogue = new sysTreeDevelopment("Rogue", 0);
            sdpClass.AddChild(sdpRogue);

            sdpHuman = new sysTreeDevelopment("Humanoid", 0);
            sdpRace.AddChild(sdpHuman);
            sdpElven = new sysTreeDevelopment("Elven", 0);
            sdpRace.AddChild(sdpElven);
            sdpStunty = new sysTreeDevelopment("Stunty", 0);
            sdpRace.AddChild(sdpStunty);
            sdpMonster = new sysTreeDevelopment("Undead", 0);
            sdpRace.AddChild(sdpMonster);
            sdpPlanar = new sysTreeDevelopment("Planar", 0);
            sdpRace.AddChild(sdpPlanar);

            sdpOpen = new sysTreeDevelopment("Open", 0);
            sdpProf.AddChild(sdpOpen);
            sdpClosed = new sysTreeDevelopment("Closed", 0);
            sdpProf.AddChild(sdpClosed);

            //sysDevelopment Paths

            //Classes
            sysDev.Add(new sysDevelopment("WAR", "Warrior", sdpFight));
            sysDev.Add(new sysDevelopment("RNG", "Ranger", sdpFight));
            sysDev.Add(new sysDevelopment("PAL", "Paladin", sdpFight));
            sysDev.Add(new sysDevelopment("BAR", "Barbarian", sdpFight));
            sysDev.Add(new sysDevelopment("CAV", "Cavalier", sdpFight));
            sysDev.Add(new sysDevelopment("MAG", "Magician", sdpMagic));
            sysDev.Add(new sysDevelopment("ILL", "Illusionist", sdpMagic));
            sysDev.Add(new sysDevelopment("CLR", "Cleric", sdpCleric));
            sysDev.Add(new sysDevelopment("DRU", "Druid", sdpCleric));
            sysDev.Add(new sysDevelopment("THF", "Thief", sdpRogue));
            sysDev.Add(new sysDevelopment("ASS", "Assassin", sdpRogue));
            sysDev.Add(new sysDevelopment("BRD", "Bard", sdpRogue));

            //Races
            sysDev.Add(new sysDevelopment("Human", "Human", sdpHuman));
            sysDev.Add(new sysDevelopment("Elf-Wood", "Wood Elf", sdpElven));
            sysDev.Add(new sysDevelopment("Elf-High", "High Elf", sdpElven));
            sysDev.Add(new sysDevelopment("Elf-Half", "Half Elf", sdpElven));
            sysDev.Add(new sysDevelopment("Elf-Light", "Spriacqwe", sdpElven));
            sysDev.Add(new sysDevelopment("Elf-Drow", "Drowe", sdpElven));
            //sysDev.Add(new sysDevelopment("Elf-Wood", "Wood Elf", sdpElven));
            sysDev.Add(new sysDevelopment("Dwarf", "Dwarf", sdpStunty));
            sysDev.Add(new sysDevelopment("Gnome", "Gnome", sdpStunty));
            sysDev.Add(new sysDevelopment("Wraith", "Wraith", sdpMonster));
            sysDev.Add(new sysDevelopment("Zombie", "Zombie", sdpMonster));
            sysDev.Add(new sysDevelopment("Ghoul", "Ghoul", sdpMonster));
            sysDev.Add(new sysDevelopment("Avatar", "Avatar", sdpMonster));

            //Professions
            sysDev.Add(new sysDevelopment("SORC", "Sorceror", sdpOpen));
            sysDev.Add(new sysDevelopment("LOYTRO", "Warrior of Loytro", sdpClosed));

            return(sdpRoot);
        }