A class to maintain the state of the particle game as a series of spacially partitioned QuadTrees.
More...
#include <ParticleSpacialPartitioner.h>
|
static int | nextNodeID = 0 |
| the unique ID of the next node to be spawned maintained by this class and incremented everytime a new node is added More...
|
|
A class to maintain the state of the particle game as a series of spacially partitioned QuadTrees.
ParticleSpacialPartitioner::ParticleSpacialPartitioner |
( |
const ParticleSpacialPartitioner & |
| ) |
|
|
delete |
Add a particle of type group to spatial partitioner TODO: maybe batch this internally
called by collide function class to change the from particle type
called by collide function class to change the To particle type
void ParticleSpacialPartitioner::deleteFromParticle |
( |
| ) |
|
|
static |
called by collisionFunction class to delete the FromParticle in a collision
void ParticleSpacialPartitioner::deleteToParticle |
( |
| ) |
|
|
static |
called by collisionFunction class to delete the FromParticle in a collision
void ParticleSpacialPartitioner::deleteUpdate |
( |
| ) |
|
|
static |
called by updateFunction class to delete a particle on update
void ParticleSpacialPartitioner::draw |
( |
| ) |
|
|
static |
draw the state of the game
void ParticleSpacialPartitioner::moveFromParticle |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
static |
called by collide function class to move the from particle
void ParticleSpacialPartitioner::moveThisParticle |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
static |
called by updateFunction class to move a particle while psp is iterating through tree
void ParticleSpacialPartitioner::moveToParticle |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
static |
called by collide function class to move the to particle
void ParticleSpacialPartitioner::operator= |
( |
const ParticleSpacialPartitioner & |
| ) |
|
|
delete |
int ParticleSpacialPartitioner::startUp |
( |
GraphicsAPI::GraphicsProgram * |
graphicsProg | ) |
|
|
static |
start up spatial partitioner
void ParticleSpacialPartitioner::update |
( |
| ) |
|
|
static |
update all particles of the tree
called by update function class changeParticle type
int ParticleSpacialPartitioner::nextNodeID = 0 |
|
static |
the unique ID of the next node to be spawned maintained by this class and incremented everytime a new node is added
The documentation for this class was generated from the following files: