public void SpellAction(Attack spell) { spell.UpdateDescription(); if (ActionChosen != null) { ActionChosen.Invoke(spell); } }
public void AttackAction() { IAction action = new BasicSwordAttack(player, currentWeapon); if (ActionChosen != null) { ActionChosen.Invoke(action); } }
public void DefendAction() { IAction action; if (currentWeapon is IceShield) { action = new IceDefend(player, 1, currentWeapon); } else { action = new Defend(player, 1, currentWeapon); } if (ActionChosen != null) { ActionChosen.Invoke(action); } }