C# Class AStarCollisionMap.QuadTree.Quad

Show file Open project: Wotuu/RTS_XNA_v2

Public Methods

Method Description
GetDepth ( ) : int

Gets the depth of this node in the tree.

GetDrawRectangle ( ) : Rectangle
Quad ( QuadRoot tree, Quad parent, Rectangle rectangle ) : System
Search ( Point p ) : Quad

Attempts to search a quad that contains the given point

Split ( ) : Quad[]

Private Methods

Method Description
Draw ( SpriteBatch sb ) : void

Method Details

GetDepth() public method

Gets the depth of this node in the tree.
public GetDepth ( ) : int
return int

GetDrawRectangle() public method

public GetDrawRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Quad() public method

public Quad ( QuadRoot tree, Quad parent, Rectangle rectangle ) : System
tree QuadRoot
parent Quad
rectangle Microsoft.Xna.Framework.Rectangle
return System

Search() public method

Attempts to search a quad that contains the given point
public Search ( Point p ) : Quad
p Point The point to search for
return Quad

Split() public method

public Split ( ) : Quad[]
return Quad[]