Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        public void BlockAttack(Character defender)    // Prints block message
        {
            DefenceSprite(defender.GetType().Name + "Block");

            CombatUI("ATTACK BLOCKED!!!");
        }