Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Random rng = new Random();

            StatSet.InitializeRNG(rng);
            Fighter.InitializeRNG(rng);
            NameGenFemale.InitializeNameGenerator(rng);
            NameGenMale.InitializeNameGenerator(rng);
        }
Exemplo n.º 2
0
 public Fighter()
 {
     // select gender at random
     if (RNG.Next(2) > 0)
     {
         // male = true
         gender = true;
         name   = NameGenMale.GetRandomName();
     }
     else
     {
         // (f)emale = (f)alse
         gender = false;
         name   = NameGenFemale.GetRandomName();
     }
     // start at level zero and level up once
     level     = 0;
     baseStats = StatSet.TEN;
     LevelUp(false);
     RecalculateStats();
     FullRecovery();
 }