ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <part_emitter.h>

Inheritance diagram for Wintermute::PartEmitter:
Collaboration diagram for Wintermute::PartEmitter:

List of all members.

Public Member Functions

 PartEmitter (BaseGame *inGame, BaseScriptHolder *Owner)
 ~PartEmitter (void) override
bool start ()
bool update () override
bool display () override
bool display (BaseRegion *region)
bool sortParticlesByZ ()
bool addSprite (const char *filename)
bool removeSprite (const char *filename)
bool setBorder (int x, int y, int width, int height)
bool setBorderThickness (int thicknessLeft, int thicknessRight, int thicknessTop, int thicknessBottom)
bool addForce (const Common::String &name, PartForce::TForceType type, int posX, int posY, float angle, float strength)
bool removeForce (const Common::String &name)
ScValuescGetProperty (const Common::String &name) override
bool scSetProperty (const char *name, ScValue *value) override
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
const char * scToString () override

Public Attributes

int32 _fadeOutTime
BaseArray< PartForce * > _forces

Private Member Functions

PartForceaddForceByName (const Common::String &name)
bool initParticle (PartParticle *particle, uint32 currentTime, uint32 timerDelta)
bool updateInternal (uint32 currentTime, uint32 timerDelta)

Static Private Member Functions

static bool compareZ (const PartParticle *p1, const PartParticle *p2)

Private Attributes

int32 _width
int32 _height
int32 _angle1
int32 _angle2
float _rotation1
float _rotation2
float _angVelocity1
float _angVelocity2
float _growthRate1
float _growthRate2
bool _exponentialGrowth
float _velocity1
float _velocity2
bool _velocityZBased
float _scale1
float _scale2
bool _scaleZBased
int32 _maxParticles
int32 _lifeTime1
int32 _lifeTime2
bool _lifeTimeZBased
int32 _genInterval
int32 _genAmount
bool _running
int32 _overheadTime
int32 _maxBatches
int32 _batchesGenerated
Rect32 _border
int32 _borderThicknessLeft
int32 _borderThicknessRight
int32 _borderThicknessTop
int32 _borderThicknessBottom
int32 _fadeInTime
int32 _alpha1
int32 _alpha2
bool _alphaTimeBased
bool _useRegion
char * _emitEvent
BaseScriptHolder_owner
uint32 _lastGenTime
BaseArray< PartParticle * > _particles
BaseArray< char * > _sprites

Detailed Description

Definition at line 39 of file part_emitter.h.


Constructor & Destructor Documentation

Wintermute::PartEmitter::PartEmitter ( BaseGame inGame,
BaseScriptHolder Owner 
)

Definition at line 49 of file part_emitter.cpp.

Wintermute::PartEmitter::~PartEmitter ( void   )  [override]

Definition at line 97 of file part_emitter.cpp.


Member Function Documentation

bool Wintermute::PartEmitter::addForce ( const Common::String name,
PartForce::TForceType  type,
int  posX,
int  posY,
float  angle,
float  strength 
)

Definition at line 426 of file part_emitter.cpp.

PartForce * Wintermute::PartEmitter::addForceByName ( const Common::String name  )  [private]

Definition at line 405 of file part_emitter.cpp.

bool Wintermute::PartEmitter::addSprite ( const char *  filename  ) 

Definition at line 119 of file part_emitter.cpp.

bool Wintermute::PartEmitter::compareZ ( const PartParticle p1,
const PartParticle p2 
) [static, private]

Definition at line 377 of file part_emitter.cpp.

bool Wintermute::PartEmitter::display ( BaseRegion region  ) 

Definition at line 323 of file part_emitter.cpp.

bool Wintermute::PartEmitter::display (  )  [inline, override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 51 of file part_emitter.h.

bool Wintermute::PartEmitter::initParticle ( PartParticle particle,
uint32  currentTime,
uint32  timerDelta 
) [private]

Definition at line 160 of file part_emitter.cpp.

bool Wintermute::PartEmitter::removeForce ( const Common::String name  ) 

Definition at line 445 of file part_emitter.cpp.

bool Wintermute::PartEmitter::removeSprite ( const char *  filename  ) 

Definition at line 148 of file part_emitter.cpp.

bool Wintermute::PartEmitter::scCallMethod ( ScScript script,
ScStack stack,
ScStack thisStack,
const char *  name 
) [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 460 of file part_emitter.cpp.

ScValue * Wintermute::PartEmitter::scGetProperty ( const Common::String name  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 606 of file part_emitter.cpp.

bool Wintermute::PartEmitter::scSetProperty ( const char *  name,
ScValue value 
) [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 883 of file part_emitter.cpp.

const char * Wintermute::PartEmitter::scToString (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 1150 of file part_emitter.cpp.

bool Wintermute::PartEmitter::setBorder ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 388 of file part_emitter.cpp.

bool Wintermute::PartEmitter::setBorderThickness ( int  thicknessLeft,
int  thicknessRight,
int  thicknessTop,
int  thicknessBottom 
)

Definition at line 395 of file part_emitter.cpp.

bool Wintermute::PartEmitter::sortParticlesByZ (  ) 

Definition at line 370 of file part_emitter.cpp.

bool Wintermute::PartEmitter::start (  ) 

Definition at line 346 of file part_emitter.cpp.

bool Wintermute::PartEmitter::update (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 252 of file part_emitter.cpp.

bool Wintermute::PartEmitter::updateInternal ( uint32  currentTime,
uint32  timerDelta 
) [private]

Definition at line 261 of file part_emitter.cpp.


Member Data Documentation

Definition at line 120 of file part_emitter.h.

Definition at line 121 of file part_emitter.h.

Definition at line 122 of file part_emitter.h.

Definition at line 76 of file part_emitter.h.

Definition at line 77 of file part_emitter.h.

Definition at line 82 of file part_emitter.h.

Definition at line 83 of file part_emitter.h.

Definition at line 110 of file part_emitter.h.

Definition at line 112 of file part_emitter.h.

Definition at line 126 of file part_emitter.h.

Definition at line 87 of file part_emitter.h.

Definition at line 118 of file part_emitter.h.

Definition at line 104 of file part_emitter.h.

Definition at line 103 of file part_emitter.h.

Definition at line 85 of file part_emitter.h.

Definition at line 86 of file part_emitter.h.

Definition at line 74 of file part_emitter.h.

Definition at line 133 of file part_emitter.h.

Definition at line 99 of file part_emitter.h.

Definition at line 100 of file part_emitter.h.

Definition at line 101 of file part_emitter.h.

Definition at line 109 of file part_emitter.h.

Definition at line 97 of file part_emitter.h.

Definition at line 107 of file part_emitter.h.

Definition at line 127 of file part_emitter.h.

Definition at line 79 of file part_emitter.h.

Definition at line 80 of file part_emitter.h.

Definition at line 106 of file part_emitter.h.

Definition at line 93 of file part_emitter.h.

Definition at line 94 of file part_emitter.h.

Definition at line 95 of file part_emitter.h.

Definition at line 135 of file part_emitter.h.

Definition at line 124 of file part_emitter.h.

Definition at line 89 of file part_emitter.h.

Definition at line 90 of file part_emitter.h.

Definition at line 91 of file part_emitter.h.

Definition at line 73 of file part_emitter.h.


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


Generated on Sat Sep 26 2020 05:04:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge