public void AttackSprite(Animation animation, Character user, string spriteName) // Prints attack sprites only { try { string[] lines = File.ReadAllLines(_directories.GetAttackSpritePath(animation.ToString(), user.GetType().Name, spriteName)); foreach (string line in lines) { Console.WriteLine(line); } } catch (IOException e) { Console.WriteLine("ERROR 404"); Console.WriteLine(e.Message); } }
public void BlockAttack(Character defender) // Prints block message { DefenceSprite(defender.GetType().Name + "Block"); CombatUI("ATTACK BLOCKED!!!"); }