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(); }
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); } }
public void TakeWeapon() { attackBehaviour = new CharactersActions.AttackWithWeapon(); }