Thrive
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
thrive::CompoundEmitterComponent Class Reference

Emitter for compound particles. More...

#include <compound_emitter_system.h>

Inheritance diagram for thrive::CompoundEmitterComponent:
thrive::Component

Public Member Functions

void emitCompound (CompoundId compoundId, double amount, double angle, double radius)
 Emits an compound according to the set properties. More...
 
void load (const StorageContainer &storage) override
 Loads the component. More...
 
StorageContainer storage () const override
 Serializes the component. More...
 
- Public Member Functions inherited from thrive::Component
virtual ~Component ()=0
 Destructor.
 
bool isVolatile () const
 A volatile component is not serialized during a save. More...
 
EntityId owner () const
 The entity this component belongs to. More...
 
void setVolatile (bool isVolatile)
 Sets the volatile flag. More...
 
void setOwner (EntityId owner)
 Sets the component's owner. More...
 
virtual ComponentTypeId typeId () const =0
 The component's type id.
 
virtual std::string typeName () const =0
 The component's type name.
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 
- Static Public Member Functions inherited from thrive::Component
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Public Attributes

Ogre::Real m_emissionRadius = 0.0
 How far away the particles are spawned.
 
Ogre::Real m_maxInitialSpeed = 0.0
 The maximum initial speed of new particles.
 
Ogre::Real m_minInitialSpeed = 0.0
 The minimum initial speed of new particles.
 
Ogre::Degree m_maxEmissionAngle = Ogre::Degree(360)
 The maximum angle at which to emit particles. More...
 
Ogre::Degree m_minEmissionAngle = Ogre::Degree(0)
 The minimum angle at which to emit particles. More...
 
Milliseconds m_particleLifetime = 1000
 How long new particles will stay alive.
 

Friends

class CompoundEmitterSystem
 

Detailed Description

Emitter for compound particles.

Member Function Documentation

void CompoundEmitterComponent::emitCompound ( CompoundId  compoundId,
double  amount,
double  angle,
double  radius 
)

Emits an compound according to the set properties.

Parameters
compoundIdThe compound type to emit
amountHow much of the chosen compound to emit
emitterPositionThe position of the entity emitting the compound. Compound position is calculated from the relative emissionPosition and the emitterPosition.
void CompoundEmitterComponent::load ( const StorageContainer &  storage)
overridevirtual

Loads the component.

Parameters
storage

Implements thrive::Component.

luabind::scope CompoundEmitterComponent::luaBindings ( )
static
StorageContainer CompoundEmitterComponent::storage ( ) const
overridevirtual

Serializes the component.

Returns

Implements thrive::Component.

Member Data Documentation

Ogre::Degree thrive::CompoundEmitterComponent::m_maxEmissionAngle = Ogre::Degree(360)

The maximum angle at which to emit particles.

Zero degrees is to the left, positive is counter-clockwise.

Ogre::Degree thrive::CompoundEmitterComponent::m_minEmissionAngle = Ogre::Degree(0)

The minimum angle at which to emit particles.

Zero degrees is to the left, positive is counter-clockwise.


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