Example #1
0
 public override void TakeDamage(BattleFieldFigure attacker)
 {
     if (attacker.Data.Team != Team)
     {
         attacker.TakeDamage(_damage);
         DestroyThisBattleFieldObject();
     }
 }
Example #2
0
 public override void Visit(BattleFieldFigure visitor)
 {
     if (visitor.Data.Team != Team)
     {
         visitor.TakeDamage(_damage);
         DestroyThisBattleFieldObject();
     }
 }
Example #3
0
    protected override void SkillAction(BattleFieldFigure figure, BattleFieldCell cell)
    {
        var rawField = figure.BattleField.BattleFieldCells;

        for (int x = 0; x < rawField.GetLength(0); x++)
        {
            for (int y = 0; y < rawField.GetLength(1); y++)
            {
                rawField[x, y].TakeDamage(figure);
            }
        }

        figure.TakeDamage(1000);
    }