Particle Game Maker Engine  1.0.0
Enables the user to create their own particle game using a simple and coherent api in the PongChamp scripting language
Public Member Functions | Public Attributes | Friends | List of all members
ParticleGroup Class Reference

#include <ParticleGroup.h>

Public Member Functions

 ParticleGroup (Color c, std::string name)
 Creates a particle group with the given color and name. More...
 
void addCollide (BakedCollisionFunctionObject **f)
 
void addUpdate (BakedUpdateFunctionObject **f)
 
CollideFuncObject ** getCollideFs (ParticleGroupHandle *to, int *size)
 
UpdateFuncObject ** getUpdateFs (int *size)
 

Public Attributes

Color c
 the color More...
 
std::string name
 the name More...
 

Friends

class ParticleGroupHandle
 
std::ostream & operator<< (std::ostream &os, const ParticleGroup &dt)
 

Detailed Description

defines a particle type

Constructor & Destructor Documentation

ParticleGroup::ParticleGroup ( Color  c,
std::string  name 
)

Creates a particle group with the given color and name.

Member Function Documentation

void ParticleGroup::addCollide ( BakedCollisionFunctionObject **  f)

Add a collision func to this particle group.

The baked object memory is released. (Pointer is set to null)

void ParticleGroup::addUpdate ( BakedUpdateFunctionObject **  f)

Add an update function to this particle group

The baked object memory is released. (Pointer is set to null)

CollideFuncObject ** ParticleGroup::getCollideFs ( ParticleGroupHandle to,
int *  size 
)

Get the collision functions, storing the size of the array in the size pointer

UpdateFuncObject ** ParticleGroup::getUpdateFs ( int *  size)

Get the update functions, storing the size of the array in the size pointer

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ParticleGroup &  dt 
)
friend
friend class ParticleGroupHandle
friend

Member Data Documentation

Color ParticleGroup::c

the color

std::string ParticleGroup::name

the name


The documentation for this class was generated from the following files: