Beispiel #1
0
        public Game()
        {
            Caste  Mage = new Caste("Mage", 1.1, 1.2, 1.6, 1.2, 1.3, 20, 20, 50, 20, 20);
            Player p    = new Player(20, 20, 20, 20, 20, 5000, "TuTu", 200, Mage, "male", new Item[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null }, 6.25);

            p.Inventory.Add(new Weapon(2, 20, 20, 50, 20, 20, Mage, 2.5, "Hurkatöltő", 7.2));
            p.Inventory.Add(new Helmet("Sityak", 2, 20, 20, 50, 20, 20, Mage, 200, 7.2));

            //Console.WriteLine(new Weapon(2, 20, 20, 50, 20, 20, Mage, 2.5, "Hurkatöltő", 7.2).GetType().BaseType);

            Console.WriteLine(p);
            Console.ReadLine();
        }
Beispiel #2
0
 protected Character(string name, int armor, Caste caste)
 {
     this.name  = name;
     this.caste = caste;
     this.armor = armor;
 }