C# Класс AStarCollisionMap.QuadTree.Quad

Показать файл Открыть проект

Открытые методы

Метод Описание
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[]

Приватные методы

Метод Описание
Draw ( SpriteBatch sb ) : void

Описание методов

GetDepth() публичный Метод

Gets the depth of this node in the tree.
public GetDepth ( ) : int
Результат int

GetDrawRectangle() публичный Метод

public GetDrawRectangle ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle

Quad() публичный Метод

public Quad ( QuadRoot tree, Quad parent, Rectangle rectangle ) : System
tree QuadRoot
parent Quad
rectangle Microsoft.Xna.Framework.Rectangle
Результат System

Search() публичный Метод

Attempts to search a quad that contains the given point
public Search ( Point p ) : Quad
p Point The point to search for
Результат Quad

Split() публичный Метод

public Split ( ) : Quad[]
Результат Quad[]