ParticleData Class Reference

#include <particle.h>

Inheritance diagram for ParticleData:

Inheritance graph
[legend]
List of all members.

Public Types

 PDC_NUM_KEYS = 4
enum  PDConst { PDC_NUM_KEYS = 4 }

Public Member Functions

 ParticleData ()
 ~ParticleData ()
void initializeParticle (Particle *, const Point3F &)
void packData (BitStream *stream)
void unpackData (BitStream *stream)
bool onAdd ()
 Called when the object is added to the sim.
bool preload (bool server, String &errorStr)
 Called to prepare the datablock for use, after it has been unpacked.
 DECLARE_CONOBJECT (ParticleData)
bool reload (char errorBuffer[256])

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Public Attributes

F32 dragCoefficient
F32 windCoefficient
F32 gravityCoefficient
F32 inheritedVelFactor
F32 constantAcceleration
S32 lifetimeMS
S32 lifetimeVarianceMS
F32 spinSpeed
F32 spinRandomMin
F32 spinRandomMax
bool useInvAlpha
bool animateTexture
U32 numFrames
U32 framesPerSec
ColorF colors [PDC_NUM_KEYS]
F32 sizes [PDC_NUM_KEYS]
F32 times [PDC_NUM_KEYS]
Point2FanimTexUVs
Point2F texCoords [4]
Point2I animTexTiling
StringTableEntry animTexFramesString
Vector< U8animTexFrames
StringTableEntry textureName
GFXTexHandle textureHandle

Private Types

typedef SimDataBlock Parent

Member Typedef Documentation

Reimplemented from SimDataBlock.


Member Enumeration Documentation

Enumerator:
PDC_NUM_KEYS 


Constructor & Destructor Documentation

ParticleData::ParticleData (  ) 

ParticleData::~ParticleData (  ) 


Member Function Documentation

void ParticleData::initializeParticle ( Particle ,
const Point3F  
)

void ParticleData::packData ( BitStream stream  )  [virtual]

Reimplemented from SimDataBlock.

void ParticleData::unpackData ( BitStream stream  )  [virtual]

Reimplemented from SimDataBlock.

bool ParticleData::onAdd (  )  [virtual]

Called when the object is added to the sim.

Reimplemented from SimDataBlock.

bool ParticleData::preload ( bool  server,
String errorStr 
) [virtual]

Called to prepare the datablock for use, after it has been unpacked.

Parameters:
server Set if we're running on the server (and therefore don't need to load things like textures or sounds).
errorStr If an error occurs in loading, this is set to a short string describing the error.
Returns:
True if all went well; false if something failed.
See also:
preload() and File Downloading

Reimplemented from SimDataBlock.

ParticleData::DECLARE_CONOBJECT ( ParticleData   ) 

static void ParticleData::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from SimObject.

bool ParticleData::reload ( char  errorBuffer[256]  ) 


Member Data Documentation

F32 ParticleData::sizes[PDC_NUM_KEYS]

F32 ParticleData::times[PDC_NUM_KEYS]