Particle Universe  1.2
ParticleUniverse::ParticleBehaviourFactory Class Referenceabstract

#include <ParticleUniverseBehaviourFactory.h>

Inheritance diagram for ParticleUniverse::ParticleBehaviourFactory:

Public Member Functions

 ParticleBehaviourFactory (void)
 
virtual ~ParticleBehaviourFactory (void)
 
virtual String getBehaviourType (void) const =0
 
virtual ParticleBehaviourcreateBehaviour (void)=0
 
void destroyBehaviour (ParticleBehaviour *behaviour)
 
- Public Member Functions inherited from ParticleUniverse::ScriptReader
 ScriptReader (void)
 
virtual ~ScriptReader (void)
 
virtual void translate (ScriptCompiler *compiler, const AbstractNodePtr &node)
 
virtual bool translateChildProperty (ScriptCompiler *compiler, const AbstractNodePtr &node)
 
virtual bool translateChildObject (ScriptCompiler *compiler, const AbstractNodePtr &node)
 
- Public Member Functions inherited from ParticleUniverse::ScriptWriter
 ScriptWriter (void)
 
virtual ~ScriptWriter (void)
 
virtual void write (ParticleScriptSerializer *serializer, const IElement *element)=0
 

Protected Member Functions

template<class T >
ParticleBehaviour_createBehaviour (void)
 

Detailed Description

This is the base factory of all ParticleBehaviour implementations.

Constructor & Destructor Documentation

ParticleUniverse::ParticleBehaviourFactory::ParticleBehaviourFactory ( void  )
inline
virtual ParticleUniverse::ParticleBehaviourFactory::~ParticleBehaviourFactory ( void  )
inlinevirtual

Member Function Documentation

template<class T >
ParticleBehaviour* ParticleUniverse::ParticleBehaviourFactory::_createBehaviour ( void  )
inlineprotected
virtual ParticleBehaviour* ParticleUniverse::ParticleBehaviourFactory::createBehaviour ( void  )
pure virtual

Creates a new behaviour instance.

Remarks

Implemented in ParticleUniverse::SlaveBehaviourFactory.

void ParticleUniverse::ParticleBehaviourFactory::destroyBehaviour ( ParticleBehaviour behaviour)
inline

Delete a behaviour

virtual String ParticleUniverse::ParticleBehaviourFactory::getBehaviourType ( void  ) const
pure virtual

Returns the type of the factory, which identifies the particle behaviour type this factory creates.

Implemented in ParticleUniverse::SlaveBehaviourFactory.


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