C# Class AStarCollisionMap.QuadTree.Quad

Afficher le fichier Open project: Wotuu/RTS_XNA_v2

Méthodes publiques

Méthode 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

Méthode Description
Draw ( SpriteBatch sb ) : void

Method Details

GetDepth() public méthode

Gets the depth of this node in the tree.
public GetDepth ( ) : int
Résultat int

GetDrawRectangle() public méthode

public GetDrawRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

Quad() public méthode

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

Search() public méthode

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

Split() public méthode

public Split ( ) : Quad[]
Résultat Quad[]