RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes
RoR::DustPool Class Reference

#include <DustPool.h>

Public Member Functions

 DustPool (Ogre::SceneManager *sm, const char *dname, int dsize)
 
 ~DustPool ()
 
void Discard (Ogre::SceneManager *sm)
 
void setVisible (bool s)
 
void malloc (Ogre::Vector3 pos, Ogre::Vector3 vel, Ogre::ColourValue col=Ogre::ColourValue(0.83, 0.71, 0.64, 1.0))
 
void allocClump (Ogre::Vector3 pos, Ogre::Vector3 vel, Ogre::ColourValue col=Ogre::ColourValue(0.83, 0.71, 0.64, 1.0))
 
void allocSmoke (Ogre::Vector3 pos, Ogre::Vector3 vel)
 
void allocSparks (Ogre::Vector3 pos, Ogre::Vector3 vel)
 
void allocVapour (Ogre::Vector3 pos, Ogre::Vector3 vel, float time)
 
void allocDrip (Ogre::Vector3 pos, Ogre::Vector3 vel, float time)
 
void allocSplash (Ogre::Vector3 pos, Ogre::Vector3 vel)
 
void allocRipple (Ogre::Vector3 pos, Ogre::Vector3 vel)
 
void update ()
 

Protected Types

enum  DustTypes {
  DUST_NORMAL, DUST_RUBBER, DUST_DRIP, DUST_VAPOUR,
  DUST_SPLASH, DUST_RIPPLE, DUST_SPARKS, DUST_CLUMP
}
 

Protected Attributes

Ogre::ColourValue colours [MAX_DUSTS]
 
Ogre::ParticleSystem * pss [MAX_DUSTS]
 
Ogre::SceneNode * sns [MAX_DUSTS]
 
Ogre::SceneNode * parent_snode
 
Ogre::Vector3 positions [MAX_DUSTS]
 
Ogre::Vector3 velocities [MAX_DUSTS]
 
float rates [MAX_DUSTS]
 
int allocated
 
int size
 
int types [MAX_DUSTS]
 
bool m_is_discarded
 

Static Protected Attributes

static const int MAX_DUSTS = 100
 

Detailed Description

Definition at line 33 of file DustPool.h.

Member Enumeration Documentation

◆ DustTypes

enum RoR::DustPool::DustTypes
protected
Enumerator
DUST_NORMAL 
DUST_RUBBER 
DUST_DRIP 
DUST_VAPOUR 
DUST_SPLASH 
DUST_RIPPLE 
DUST_SPARKS 
DUST_CLUMP 

Definition at line 66 of file DustPool.h.

Constructor & Destructor Documentation

◆ DustPool()

DustPool::DustPool ( Ogre::SceneManager *  sm,
const char *  dname,
int  dsize 
)

Definition at line 38 of file DustPool.cpp.

+ Here is the call graph for this function:

◆ ~DustPool()

DustPool::~DustPool ( )

Definition at line 64 of file DustPool.cpp.

Member Function Documentation

◆ allocClump()

void DustPool::allocClump ( Ogre::Vector3  pos,
Ogre::Vector3  vel,
Ogre::ColourValue  col = Ogre::ColourValue(0.83, 0.71, 0.64, 1.0) 
)

Definition at line 109 of file DustPool.cpp.

◆ allocDrip()

void DustPool::allocDrip ( Ogre::Vector3  pos,
Ogre::Vector3  vel,
float  time 
)

Definition at line 160 of file DustPool.cpp.

◆ allocRipple()

void DustPool::allocRipple ( Ogre::Vector3  pos,
Ogre::Vector3  vel 
)

Definition at line 183 of file DustPool.cpp.

+ Here is the caller graph for this function:

◆ allocSmoke()

void DustPool::allocSmoke ( Ogre::Vector3  pos,
Ogre::Vector3  vel 
)

Definition at line 122 of file DustPool.cpp.

◆ allocSparks()

void DustPool::allocSparks ( Ogre::Vector3  pos,
Ogre::Vector3  vel 
)

Definition at line 134 of file DustPool.cpp.

◆ allocSplash()

void DustPool::allocSplash ( Ogre::Vector3  pos,
Ogre::Vector3  vel 
)

Definition at line 172 of file DustPool.cpp.

+ Here is the caller graph for this function:

◆ allocVapour()

void DustPool::allocVapour ( Ogre::Vector3  pos,
Ogre::Vector3  vel,
float  time 
)

Definition at line 148 of file DustPool.cpp.

◆ Discard()

void DustPool::Discard ( Ogre::SceneManager *  sm)

Definition at line 69 of file DustPool.cpp.

◆ malloc()

void DustPool::malloc ( Ogre::Vector3  pos,
Ogre::Vector3  vel,
Ogre::ColourValue  col = Ogre::ColourValue(0.83, 0.71, 0.64, 1.0) 
)

Definition at line 96 of file DustPool.cpp.

+ Here is the caller graph for this function:

◆ setVisible()

void DustPool::setVisible ( bool  s)

Definition at line 87 of file DustPool.cpp.

◆ update()

void DustPool::update ( )

Definition at line 194 of file DustPool.cpp.

+ Here is the call graph for this function:

Field Documentation

◆ allocated

int RoR::DustPool::allocated
protected

Definition at line 85 of file DustPool.h.

◆ colours

Ogre::ColourValue RoR::DustPool::colours[MAX_DUSTS]
protected

Definition at line 78 of file DustPool.h.

◆ m_is_discarded

bool RoR::DustPool::m_is_discarded
protected

Definition at line 88 of file DustPool.h.

◆ MAX_DUSTS

const int DustPool::MAX_DUSTS = 100
staticprotected

Definition at line 64 of file DustPool.h.

◆ parent_snode

Ogre::SceneNode* RoR::DustPool::parent_snode
protected

Definition at line 81 of file DustPool.h.

◆ positions

Ogre::Vector3 RoR::DustPool::positions[MAX_DUSTS]
protected

Definition at line 82 of file DustPool.h.

◆ pss

Ogre::ParticleSystem* RoR::DustPool::pss[MAX_DUSTS]
protected

Definition at line 79 of file DustPool.h.

◆ rates

float RoR::DustPool::rates[MAX_DUSTS]
protected

Definition at line 84 of file DustPool.h.

◆ size

int RoR::DustPool::size
protected

Definition at line 86 of file DustPool.h.

◆ sns

Ogre::SceneNode* RoR::DustPool::sns[MAX_DUSTS]
protected

Definition at line 80 of file DustPool.h.

◆ types

int RoR::DustPool::types[MAX_DUSTS]
protected

Definition at line 87 of file DustPool.h.

◆ velocities

Ogre::Vector3 RoR::DustPool::velocities[MAX_DUSTS]
protected

Definition at line 83 of file DustPool.h.


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