Beispiel #1
0
    private void DamageEnemies(int percentage, MapSquare currentSquare)
    {
        currentSquare.AdjustPercentDamageToEnemy(percentage);
        List <MapSquare> squares = currentSquare.GetAdjacentSquares();

        foreach (MapSquare square in squares)
        {
            square.AdjustPercentDamageToEnemy(percentage);
        }
    }