コード例 #1
0
ファイル: QuadNode.cs プロジェクト: memsyi/marioBadClone
    public void clear()
    {
        // is it a leaf?
        if (level == QuadTreeTouchEvent.DEEP_LEVEL_THRESHOLD)
        {
            leafContent.clear();
            return;
        }

        // while not being a leaf then continue cleaning quad nodes
        if (topLeft != null)
        {
            topLeft.clear();
        }
        if (topRight != null)
        {
            topRight.clear();
        }
        if (botRight != null)
        {
            botRight.clear();
        }
        if (botLeft != null)
        {
            botLeft.clear();
        }
    }
コード例 #2
0
 public void clear()
 {
     root.clear();
 }