![]() |
xyginext
0.2.0
Second generation of xygine game creation framework
|
Nodes which make up the branches and leaves of the QuadTree. More...
#include <QuadTree.hpp>
Public Types | |
using | Ptr = std::unique_ptr< QuadTreeNode > |
Public Member Functions | |
QuadTreeNode (sf::FloatRect area, sf::Int32 level, QuadTreeNode *parent, QuadTree *quadTree) | |
void | addEntity (xy::Entity) |
sf::FloatRect | getArea () const |
sf::Int32 | getNumEntsBelow () const |
void | update (xy::Entity) |
void | removeEntity (xy::Entity) |
const std::vector< xy::Entity > & | getEntities () const |
bool | hasChildren () const |
const std::array< Ptr, 4u > & | getChildNodes () const |
std::size_t | getEntityCount () const |
Nodes which make up the branches and leaves of the QuadTree.