Пример #1
0
    public void DestroyList(int startX, int endX, int startY, int endY)
    {
        int index = (halfHeight * 2 + 1) * (halfWidth * 2 + 1);
        int i;

        for (i = halfHeight; i >= -halfHeight; i--)
        {
            for (int j = -halfWidth; j <= halfWidth; j++)
            {
                index--;
                if (i <= startY && i >= endY && j >= startX && j <= endX)
                {
                    list.DestroyItem(index);
                }
            }
        }
    }