Exemplo n.º 1
0
        public static sysTreeStatistic SeedTreeData(IList <sysBaseStatistic> stats)
        {
            sysTreeStatistic stRoot, stBase, stDomain, stCombat, stLevels;

            //Stat Tree#
            stRoot = new sysTreeStatistic(nwdbConst.sysTreeNameStatistic, -1);

            stBase   = new sysTreeStatistic("Base Stats", 0);
            stDomain = new sysTreeStatistic("Domain Stats", 0);
            stCombat = new sysTreeStatistic("Combat Stats", 0);
            stLevels = new sysTreeStatistic("Level Stats", 0);

            //Seed Statistics
            stats.Add(new sysBaseStatistic("STR", "Strength", stBase));
            stats.Add(new sysBaseStatistic("INT", "Intelligence", stBase));
            stats.Add(new sysBaseStatistic("WIS", "Wisdom", stBase));
            stats.Add(new sysBaseStatistic("CON", "Constitution", stBase));
            stats.Add(new sysBaseStatistic("DEX", "Dexterity", stBase));
            stats.Add(new sysBaseStatistic("CHA", "Charisma", stBase));

            stats.Add(new sysBaseStatistic("POL", "Politics", stDomain));
            stats.Add(new sysBaseStatistic("WAR", "Warfare", stDomain));
            stats.Add(new sysBaseStatistic("TRA", "Trade", stDomain));
            stats.Add(new sysBaseStatistic("SPY", "Espionage", stDomain));
            stats.Add(new sysBaseStatistic("SCI", "Science", stDomain));
            stats.Add(new sysBaseStatistic("LAW", "Lawmaking", stDomain));



            stRoot.AddChild(stBase);
            stRoot.AddChild(stDomain);
            //stRoot.AddChild(stCombat);
            return(stRoot);
        }
 public sysBaseStatistic(string n, string nl, int vmin, int vmax, int vdefault, sysTreeStatistic sg)
     : this(n, nl, sg)
 {
     this.min      = vmin;
     this.max      = vmax;
     this.defvalue = vdefault;
     bUseShort     = true;
 }
 public sysBaseStatistic(string n, string nl, sysTreeStatistic sg)
     : this(n, nl)
 {
     this.StatisticGroup = sg;
     sg.Statistics.Add(this);
 }