Exemplo n.º 1
0
 //public inventory inv = new inventory(r1);
 public Person(string name, int pol, int rase)
 {
     this.name = name;
     this.Pol  = pol;
     this.Rase = rase;
     r1        = new Spel(Pol, Rase);
     H1        = new HitBar(Pol, Rase);
     H1.RedHit(r1);
 }
Exemplo n.º 2
0
 public enemy(string name, int pol, int rase)
 {
     this.Name = name;
     this.Pol  = pol;
     this.Rase = rase;
     r2        = new Spel(Pol, Rase);
     H1        = new HitBar(Pol, Rase);
     H1.RedHit(r2);
     Cost = H1.hp / 10 + (r2.agility + r2.community + r2.intelegent + r2.lucky * 10 + r2.stamina);
 }
Exemplo n.º 3
0
 public Person()
 {
     Console.WriteLine("Введите имя персонажа");
     this.name = Console.ReadLine();
     Console.WriteLine("Введите пол (1 Органика,2 Бот)");
     this.Pol = Convert.ToInt32(Console.ReadLine());
     Console.WriteLine("Введите рассу(1 Мутант, 2 Человек, 3 Пустотный)");
     this.Rase = Convert.ToInt32(Console.ReadLine());
     r1        = new Spel(Pol, Rase);
     H1        = new HitBar(Pol, Rase);
     H1.RedHit(r1);
 }
Exemplo n.º 4
0
        public enemy()
        {
            Array values  = Enum.GetValues(typeof(EnemyName));
            Array values1 = Enum.GetValues(typeof(EnemyFirstName));

            this.Name = Enum.GetName(typeof(EnemyName), rand.Next(values.Length)) + " " + Enum.GetName(typeof(EnemyFirstName), rand.Next(values1.Length));
            this.Pol  = rand.Next() % 2 + 1;
            this.Rase = rand.Next() % 3 + 1;
            r2        = new Spel(Pol, Rase);
            H1        = new HitBar(Pol, Rase);
            H1.RedHit(r2);
            Cost = H1.hp / 10 + (r2.agility + r2.community + r2.intelegent + r2.lucky * 10 + r2.stamina);
        }