示例#1
0
        public void genStats()
        {
            myStats = new StatHandler();

            //want to move/replace the below, make things more generic
            MyStats.makeNewStat("Strength");
            MyStats.makeNewStat("Dexterity");
            MyStats.makeNewStat("Constitution");
            MyStats.makeNewStat("Intelligence");
            MyStats.makeNewStat("Wisdom");
            MyStats.makeNewStat("Charisma");
        }
示例#2
0
        Background myBackground; // myBackground = new Background();


        public Character()
        {
            myStats = new StatHandler();
            //int test = myRace.Races.Length;
            //myRace = new Elf();
            //myClass = new Wizard();
            //Character[] me = new Character[] { this };
            if (myRace == null)
            {
                myRace = new Human(); //initialise the list source
                myRace = (Race)Activator.CreateInstance(myRace.RaceList[rnd.Next(myRace.RaceList.Count)]);
            }
            if (myClass == null)
            {
                myClass = new Wizard(); //initialise the list source
                myClass = (Class)Activator.CreateInstance(myClass.ClassList[rnd.Next(myClass.ClassList.Count)]);
            }

            // myBackground = new Background(myRace, myClass);
        }