public void Dead(int current, bool deadResult)
        {
            var a = new AtlasWarriorsGame.Actor();

            a.SetHealth(current);
            a.MaxHealth = 10;
            Assert.AreEqual(deadResult, a.Dead);
        }
        public void Heal(int current, int maxHealth, int healAmount, int result)
        {
            var a = new AtlasWarriorsGame.Actor();

            a.SetHealth(current);
            a.MaxHealth = maxHealth;
            Assert.AreEqual(result, a.Heal(healAmount), "Healed to incorrect value");
        }
        public void BlockedMove(XY DxDy)
        {
            var actor         = new AtlasWarriorsGame.Actor(ClosedDungeon);
            var startLocation = actor.Location;

            actor.Move(DxDy);
            Assert.AreEqual(startLocation.X, actor.Location.X, "X failed to block");
            Assert.AreEqual(startLocation.Y, actor.Location.Y, "Y failed to block");
        }
        public void OpenMove(XY DxDy)
        {
            var actor         = new AtlasWarriorsGame.Actor(OpenDungeon);
            var startLocation = actor.Location;

            actor.Move(DxDy);
            Assert.AreEqual(startLocation.X + DxDy.X, actor.Location.X, "X movement incorrect");
            Assert.AreEqual(startLocation.Y + DxDy.Y, actor.Location.Y, "Y movement incorrect");
        }
        public void Injure(int current, int damage, int after)
        {
            var a = new AtlasWarriorsGame.Actor();

            a.SetHealth(current);
            a.MaxHealth = current;
            a.Injure(damage);
            Assert.AreEqual(after, a.CurrentHealth, "Injured to incorrect value");
        }
        public void Attack(int currentHealth, int atk, int dmg, int def, int roll, int result)
        {
            var a = new AtlasWarriorsGame.Actor();

            a.BaseAtk = atk;
            a.BaseDmg = dmg;

            var b = new AtlasWarriorsGame.Actor();

            b.BaseDef = def;
            b.SetHealth(currentHealth);

            // Seed roll
            AtlasWarriorsGame.GlobalRandom.Inject(roll);

            // Attack
            a.Attack(b);

            Assert.AreEqual(result, b.CurrentHealth);
        }