cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PURandomiser Class Reference

#include <CCPURandomiser.h>

Inheritance diagram for PURandomiser:
PUAffector Particle3DAffector Ref

Public Member Functions

virtual void preUpdateAffector (float deltaTime) override
local preUpdateAffector ( local deltaTime)
virtual void updatePUAffector (PUParticle3D *particle, float deltaTime) override
local updatePUAffector ( local particle, local deltaTime)
virtual void postUpdateAffector (float deltaTime) override
float getMaxDeviationX (void) const
void setMaxDeviationX (const float maxDeviationX)
float getMaxDeviationY (void) const
void setMaxDeviationY (const float maxDeviationZ)
float getMaxDeviationZ (void) const
void setMaxDeviationZ (const float maxDeviationZ)
float getTimeStep (void) const
void setTimeStep (const float timeStep)
bool isRandomDirection (void) const
void setRandomDirection (bool randomDirection)
virtual void copyAttributesTo (PUAffector *affector) override
virtual ~PURandomiser (void)
- Public Member Functions inherited from PUAffector
virtual void notifyStart ()
virtual void notifyStop ()
virtual void notifyPause ()
virtual void notifyResume ()
virtual void notifyRescaled (const Vec3 &scale)
local notifyRescaled ( local scale)
virtual void prepare ()
virtual void unPrepare ()
virtual void firstParticleUpdate (PUParticle3D *particle, float deltaTime)
var firstParticleUpdate ( var particle, var deltaTime)
local firstParticleUpdate ( local particle, local deltaTime)
virtual void initParticleForEmission (PUParticle3D *particle)
var initParticleForEmission ( var particle)
local initParticleForEmission ( local particle)
void process (PUParticle3D *particle, float delta, bool firstParticle)
void setLocalPosition (const Vec3 &pos)
const Vec3 getLocalPosition () const
void setMass (float mass)
float getMass () const
const Vec3getDerivedPosition ()
 Calculate the derived position of the affector. More...
 
local getDerivedPosition ()
 Calculate the derived position of the affector. More...
 
const AffectSpecialisationgetAffectSpecialisation (void) const
 Todo. More...
 
local getAffectSpecialisation ()
 Todo. More...
 
void setAffectSpecialisation (const AffectSpecialisation &affectSpecialisation)
const std::string & getAffectorType (void) const
 Todo. More...
 
void setAffectorType (const std::string &affectorType)
void addEmitterToExclude (const std::string &emitterName)
 Add a ParticleEmitter name that excludes Particles emitted by this ParticleEmitter from being affected. More...
 
void removeEmitterToExclude (const std::string &emitterName)
 Remove a ParticleEmitter name that excludes Particles emitted by this ParticleEmitter. More...
 
const std::string & getName (void) const
 Todo. More...
 
void setName (const std::string &name)
virtual ~PUAffector ()
- Public Member Functions inherited from Particle3DAffector
virtual void updateAffector (Particle3D *particle, float deltaTime)
void setEnabled (bool enabled)
 Enables or disables the emitter. More...
 
bool isEnabled (void) const
virtual ~Particle3DAffector ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static PURandomisercreate ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PURandomiser(void)
- Public Attributes inherited from PUAffector
CC_CONSTRUCTOR_ACCESS __pad0__: PUAffector()
- Public Attributes inherited from Particle3DAffector
CC_CONSTRUCTOR_ACCESS __pad0__: Particle3DAffector()

Static Public Attributes

static const Vec3 DEFAULT_MAX_DEVIATION
var DEFAULT_MAX_DEVIATION
local DEFAULT_MAX_DEVIATION
static const float DEFAULT_TIME_STEP
local DEFAULT_TIME_STEP
static const bool DEFAULT_RANDOM_DIRECTION

Protected Attributes

float _maxDeviationX
float _maxDeviationY
float _maxDeviationZ
float _timeSinceLastUpdate
float _timeStep
bool _randomDirection
bool _update
- Protected Attributes inherited from PUAffector
Vec3 _position
Vec3 _affectorScale
 Although the scale is on a Particle System level, the affector can also be scaled. More...
 
Vec3 _derivedPosition
 Because the public attribute ´position?is sometimes used for both localspace and worldspace position, the mDerivedPosition attribute is introduced. More...
 
AffectSpecialisation _affectSpecialisation
 The mAffectSpecialisation is used to specialise the affector. More...
 
std::string _affectorType
std::vector< std::string > _excludedEmitters
var _excludedEmitters
local _excludedEmitters
std::string _name
float _mass
- Protected Attributes inherited from Particle3DAffector
ParticleSystem3D_particleSystem
bool _isEnabled
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Public Types inherited from PUAffector
enum  AffectSpecialisation { AFSP_DEFAULT, AFSP_TTL_INCREASE, AFSP_TTL_DECREASE }
 The AffectSpecialisation enumeration is used to specialise the affector even more. More...
 
- Protected Member Functions inherited from PUAffector
float calculateAffectSpecialisationFactor (const PUParticle3D *particle)
var calculateAffectSpecialisationFactor ( var particle)
local calculateAffectSpecialisationFactor ( local particle)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

virtual ~PURandomiser ( void  )
virtual
var ~PURandomiser (   )
virtual
local ~PURandomiser (   )
virtual

Member Function Documentation

virtual void copyAttributesTo ( PUAffector affector)
overridevirtual

Reimplemented from PUAffector.

var copyAttributesTo ( var  affector)
overridevirtual

Reimplemented from PUAffector.

local copyAttributesTo ( local  affector)
overridevirtual

Reimplemented from PUAffector.

static PURandomiser* create ( )
static
var create ( )
static
local create ( )
static
float getMaxDeviationX ( void  ) const
var getMaxDeviationX (   )
local getMaxDeviationX (   )
float getMaxDeviationY ( void  ) const
var getMaxDeviationY (   )
local getMaxDeviationY (   )
float getMaxDeviationZ ( void  ) const
var getMaxDeviationZ (   )
local getMaxDeviationZ (   )
float getTimeStep ( void  ) const
var getTimeStep (   )
local getTimeStep (   )
bool isRandomDirection ( void  ) const
var isRandomDirection (   )
local isRandomDirection (   )
virtual void postUpdateAffector ( float  deltaTime)
overridevirtual

Reimplemented from PUAffector.

var postUpdateAffector ( var  deltaTime)
overridevirtual

Reimplemented from PUAffector.

local postUpdateAffector ( local  deltaTime)
overridevirtual

Reimplemented from PUAffector.

virtual void preUpdateAffector ( float  deltaTime)
overridevirtual

Reimplemented from PUAffector.

var preUpdateAffector ( var  deltaTime)
overridevirtual

Reimplemented from PUAffector.

local preUpdateAffector ( local  deltaTime)
overridevirtual

Reimplemented from PUAffector.

void setMaxDeviationX ( const float  maxDeviationX)
var setMaxDeviationX ( var  maxDeviationX)
local setMaxDeviationX ( local  maxDeviationX)
void setMaxDeviationY ( const float  maxDeviationZ)
var setMaxDeviationY ( var  maxDeviationZ)
local setMaxDeviationY ( local  maxDeviationZ)
void setMaxDeviationZ ( const float  maxDeviationZ)
var setMaxDeviationZ ( var  maxDeviationZ)
local setMaxDeviationZ ( local  maxDeviationZ)
void setRandomDirection ( bool  randomDirection)
var setRandomDirection ( var  randomDirection)
local setRandomDirection ( local  randomDirection)
void setTimeStep ( const float  timeStep)
var setTimeStep ( var  timeStep)
local setTimeStep ( local  timeStep)
virtual void updatePUAffector ( PUParticle3D particle,
float  deltaTime 
)
overridevirtual

Reimplemented from PUAffector.

var updatePUAffector ( var  particle,
var  deltaTime 
)
overridevirtual

Reimplemented from PUAffector.

local updatePUAffector ( local  particle,
local  deltaTime 
)
overridevirtual

Reimplemented from PUAffector.

Member Data Documentation

var __pad0__
local __pad0__
float _maxDeviationX
protected
var _maxDeviationX
protected
local _maxDeviationX
protected
float _maxDeviationY
protected
var _maxDeviationY
protected
local _maxDeviationY
protected
float _maxDeviationZ
protected
var _maxDeviationZ
protected
local _maxDeviationZ
protected
bool _randomDirection
protected
var _randomDirection
protected
local _randomDirection
protected
float _timeSinceLastUpdate
protected
var _timeSinceLastUpdate
protected
local _timeSinceLastUpdate
protected
float _timeStep
protected
var _timeStep
protected
local _timeStep
protected
bool _update
protected
var _update
protected
local _update
protected
const Vec3 DEFAULT_MAX_DEVIATION
static
var DEFAULT_MAX_DEVIATION
static
local DEFAULT_MAX_DEVIATION
static
const bool DEFAULT_RANDOM_DIRECTION
static
var DEFAULT_RANDOM_DIRECTION
static
local DEFAULT_RANDOM_DIRECTION
static
const float DEFAULT_TIME_STEP
static
var DEFAULT_TIME_STEP
static
local DEFAULT_TIME_STEP
static

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