public BaseCharacter(ClassSpec @class = ClassSpec.WARRIOR, string name = "NoName", int healthPoint = 100, int armour = 0, int attackPower = 0) { EquipedItems.Add("Weapon", new Items.Weapons.SteelSword()); EquipedItems.Add("Armour", new Items.Armours.SteelArmour()); EquipedItems.Add("Spell", new Items.Spells.Fireball()); EquipedItems.Add("Potion", new Items.Potion.HealthPotion()); Class = @class; Name = name; HealthPoint = healthPoint; Armour = armour; AttackPower = attackPower; attackBehaviour = new CharactersActions.BasicAttack(); }
public void setAttackBehaviour(CharactersActions.IAttackable newAttackBehaviour) { attackBehaviour = newAttackBehaviour; }