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
Classes | Public Member Functions | Protected Member Functions | List of all members
UpdateFuncObject Class Referenceabstract

#include <UpdateFuncObjects.h>

Inheritance diagram for UpdateFuncObject:
Update_Create Update_Lifetime Update_Move Update_RandomMove

Public Member Functions

 UpdateFuncObject (int framesPerUpdate, int updateLimit)
 
void update (uint32_t particleId, ParticleGroupHandle *group, int x, int y, unsigned int framesElapsed)
 

Protected Member Functions

virtual void doUpdate (uint32_t particleId, ParticleGroupHandle *group, int x, int y, unsigned int framesElapsed) = 0
 

Constructor & Destructor Documentation

UpdateFuncObject::UpdateFuncObject ( int  framesPerUpdate,
int  updateLimit 
)

Create an update object

Parameters
framesPerUpdateonly update every few frames
updateLimitonly update this many times (< 0 for no limit)

Member Function Documentation

virtual void UpdateFuncObject::doUpdate ( uint32_t  particleId,
ParticleGroupHandle group,
int  x,
int  y,
unsigned int  framesElapsed 
)
protectedpure virtual
void UpdateFuncObject::update ( uint32_t  particleId,
ParticleGroupHandle group,
int  x,
int  y,
unsigned int  framesElapsed 
)

Do something every frame.

Parameters
groupthe particle group to affect
xthe x position of the particle to affect
ythe y position of the particle to affect
framesElapsedhow many frames have elapsed since the last update

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