public EnemyOrcRanger(int expReward   = 10, ClassSpec @class = ClassSpec.RANGER, string name = "OrcsmerRanger",
                       int healthPoint = 20, int armour       = 1, int attackPower = 3)
     : base(expReward, @class, name, healthPoint, armour, attackPower)
 {
     EquipedItems["Weapon"] = new Items.Weapons.SimpleBow();
     attackBehaviour        = new CharactersActions.AttackWithWeapon();
 }
示例#2
0
        public void EquipItem(Items.ItemBase item)
        {
            int tmp = 0;

            foreach (Items.ItemBase i in heroresources.ItemList)
            {
                if (i == item)
                {
                    Console.WriteLine("you have equiped a {0} in {1} slot", i.Name, i.itemSlot);
                    attackBehaviour = new CharactersActions.AttackWithWeapon();
                    heroresources.ItemList.Remove(i);
                    tmp++;
                    break;
                }
            }
            if (tmp == 0)
            {
                Console.WriteLine("You dont have such an item: {0}", item.Name);
            }
        }
示例#3
0
 public void TakeWeapon()
 {
     attackBehaviour = new CharactersActions.AttackWithWeapon();
 }