CompositeInitPolicy< Policy1, Policy2, ParticleType > Class Template Reference

A policy that combines any two distict policies with the same methods as found in the InitPolicy class. NOTE: Policy1 and Policy2 should not have the same names for any of its members. More...

#include <Graphics/ParticleSystem.h>

List of all members.

Public Member Functions

void PreEmit (const Point2f &pos, uint amount)
 Called once before new particles are emitted.
void InitParticle (ParticleType &p)
 Called once on each new particle that is emitted.

Detailed Description

template<class Policy1, class Policy2, class ParticleType = Particle>
class CompositeInitPolicy< Policy1, Policy2, ParticleType >

A policy that combines any two distict policies with the same methods as found in the InitPolicy class. NOTE: Policy1 and Policy2 should not have the same names for any of its members.

Template Parameters:
Policy1 the first policy.
Policy2 the second policy.
ParticleType the type of particle to use in the particle system. The ParticleType is expected to inheret from the Particle class (or at least have duplicate members).

Member Function Documentation

template<class Policy1 , class Policy2 , class ParticleType = Particle>
void CompositeInitPolicy< Policy1, Policy2, ParticleType >::InitParticle ( ParticleType &  p  )  [inline]

Called once on each new particle that is emitted.

Parameters:
[in] p the particle to initialize.
template<class Policy1 , class Policy2 , class ParticleType = Particle>
void CompositeInitPolicy< Policy1, Policy2, ParticleType >::PreEmit ( const Point2f pos,
uint  amount 
) [inline]

Called once before new particles are emitted.

Parameters:
[in] pos the requested position to emit the particles.
[in] amount the number of particles that will be emitted.

The documentation for this class was generated from the following file:
Generated on Mon Apr 5 19:08:05 2010 for BrickOut |ReDuX| by  doxygen 1.6.3