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

Emitter for compound particles. More...

#include <membrane_system.h>

Inheritance diagram for thrive::MembraneComponent:
thrive::Component

Public Member Functions

void load (const StorageContainer &storage) override
 Loads the component. More...
 
StorageContainer storage () const override
 Serializes the component. More...
 
void sendOrganelles (double x, double y)
 
void setColour (float red, float green, float blue, float alpha)
 
Ogre::Vector3 getColour ()
 
int getAbsorbedCompounds ()
 
void DrawMembrane ()
 
bool contains (float x, float y)
 
void Initialize ()
 
void Update ()
 
void MakePrism ()
 
int getCellDimensions ()
 
void absorbCompounds (int amount)
 
Ogre::Vector3 GetExternalOrganelle (double x, double y)
 
Ogre::Vector3 FindClosestOrganelles (Ogre::Vector3 target)
 
Ogre::Vector3 GetMovement (Ogre::Vector3 target, Ogre::Vector3 closestOrganelle)
 
luabind::object getExternOrganellePos (double x, double y)
 
void CalcUVCircle ()
 
void CalcNormals ()
 
- 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::ColourValue colour
 
bool isInitialized
 
bool wantsMembrane
 
std::vector< Ogre::Vector3 > MeshPoints
 
std::vector< Ogre::Vector3 > UVs
 
std::vector< Ogre::Vector3 > Normals
 

Friends

class MembraneSystem
 
class CompoundCloudSystem
 

Detailed Description

Emitter for compound particles.

Member Function Documentation

void MembraneComponent::load ( const StorageContainer &  storage)
overridevirtual

Loads the component.

Parameters
storage

Implements thrive::Component.

luabind::scope MembraneComponent::luaBindings ( )
static

Lua bindings.

Exposes:

  • MembraneComponent()
  • MembraneComponent::m_emissionRadius
Returns
StorageContainer MembraneComponent::storage ( ) const
overridevirtual

Serializes the component.

Returns

Implements thrive::Component.


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