Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ParticleInfo Class Reference

#include <ParticleSys.h>

Inherits Snapshot.

Inherited by Particle.

Public Member Functions

 ParticleInfo (void)
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Public Attributes

Coord3D m_vel
 initial velocity
 
Coord3D m_pos
 initial position
 
Coord3D m_emitterPos
 position of the emitter
 
Real m_velDamping
 velocity damping coefficient
 
Real m_angleZ
 initial angle around Z axis
 
Real m_angularRateZ
 initial angle around Z axis
 
Real m_angularDamping
 angular velocity damping coefficient
 
UnsignedInt m_lifetime
 lifetime of this particle
 
Real m_size
 size of the particle
 
Real m_sizeRate
 rate of change of size
 
Real m_sizeRateDamping
 damping of size change rate
 
Keyframe m_alphaKey [MAX_KEYFRAMES]
 
RGBColorKeyframe m_colorKey [MAX_KEYFRAMES]
 
Real m_colorScale
 color "scaling" coefficient
 
Real m_windRandomness
 multiplier for wind randomness per particle
 
Bool m_particleUpTowardsEmitter
 correspond to the direction of the emitter.
 

Protected Member Functions

virtual void crc (Xfer *xfer)
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 

Detailed Description

This structure is filled out and passed to the constructor of a Particle to initialize it

Definition at line 117 of file ParticleSys.h.

Constructor & Destructor Documentation

◆ ParticleInfo()

ParticleInfo::ParticleInfo ( void )

Definition at line 74 of file ParticleSys.cpp.

Member Function Documentation

◆ crc()

void ParticleInfo::crc ( Xfer * xfer)
protectedvirtual

CRC

Implements Snapshot.

Reimplemented in Particle.

Definition at line 101 of file ParticleSys.cpp.

◆ loadPostProcess()

void ParticleInfo::loadPostProcess ( void )
protectedvirtual

Load post process

Implements Snapshot.

Reimplemented in Particle.

Definition at line 187 of file ParticleSys.cpp.

◆ xfer()

void ParticleInfo::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Implements Snapshot.

Reimplemented in Particle.

Definition at line 111 of file ParticleSys.cpp.

Member Data Documentation

◆ m_alphaKey

Keyframe ParticleInfo::m_alphaKey[MAX_KEYFRAMES]

Definition at line 139 of file ParticleSys.h.

◆ m_angleZ

Real ParticleInfo::m_angleZ

initial angle around Z axis

Definition at line 129 of file ParticleSys.h.

◆ m_angularDamping

Real ParticleInfo::m_angularDamping

angular velocity damping coefficient

Definition at line 131 of file ParticleSys.h.

◆ m_angularRateZ

Real ParticleInfo::m_angularRateZ

initial angle around Z axis

Definition at line 130 of file ParticleSys.h.

◆ m_colorKey

RGBColorKeyframe ParticleInfo::m_colorKey[MAX_KEYFRAMES]

Definition at line 140 of file ParticleSys.h.

◆ m_colorScale

Real ParticleInfo::m_colorScale

color "scaling" coefficient

Definition at line 142 of file ParticleSys.h.

◆ m_emitterPos

Coord3D ParticleInfo::m_emitterPos

position of the emitter

Definition at line 126 of file ParticleSys.h.

◆ m_lifetime

UnsignedInt ParticleInfo::m_lifetime

lifetime of this particle

Definition at line 133 of file ParticleSys.h.

◆ m_particleUpTowardsEmitter

Bool ParticleInfo::m_particleUpTowardsEmitter

correspond to the direction of the emitter.

if this is true, then the 0.0 Z rotation should actually

Definition at line 146 of file ParticleSys.h.

◆ m_pos

Coord3D ParticleInfo::m_pos

initial position

Definition at line 125 of file ParticleSys.h.

◆ m_size

Real ParticleInfo::m_size

size of the particle

Definition at line 135 of file ParticleSys.h.

◆ m_sizeRate

Real ParticleInfo::m_sizeRate

rate of change of size

Definition at line 136 of file ParticleSys.h.

◆ m_sizeRateDamping

Real ParticleInfo::m_sizeRateDamping

damping of size change rate

Definition at line 137 of file ParticleSys.h.

◆ m_vel

Coord3D ParticleInfo::m_vel

initial velocity

Definition at line 124 of file ParticleSys.h.

◆ m_velDamping

Real ParticleInfo::m_velDamping

velocity damping coefficient

Definition at line 127 of file ParticleSys.h.

◆ m_windRandomness

Real ParticleInfo::m_windRandomness

multiplier for wind randomness per particle

Definition at line 144 of file ParticleSys.h.


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