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

#include <CCPUScaleAffector.h>

Inheritance diagram for PUScaleAffector:
PUAffector Particle3DAffector Ref

Public Member Functions

virtual void updatePUAffector (PUParticle3D *particle, float deltaTime) override
local updatePUAffector ( local particle, local deltaTime)
PUDynamicAttributegetDynScaleX (void) const
void setDynScaleX (PUDynamicAttribute *dynScaleX)
void resetDynScaleX (bool resetToDefault=true)
PUDynamicAttributegetDynScaleY (void) const
local getDynScaleY ()
void setDynScaleY (PUDynamicAttribute *dynScaleY)
void resetDynScaleY (bool resetToDefault=true)
PUDynamicAttributegetDynScaleZ (void) const
local getDynScaleZ ()
void setDynScaleZ (PUDynamicAttribute *dynScaleZ)
void resetDynScaleZ (bool resetToDefault=true)
PUDynamicAttributegetDynScaleXYZ (void) const
local getDynScaleXYZ ()
void setDynScaleXYZ (PUDynamicAttribute *dynScaleXYZ)
void resetDynScaleXYZ (bool resetToDefault=true)
bool isSinceStartSystem (void) const
void setSinceStartSystem (bool sinceStartSystem)
virtual void copyAttributesTo (PUAffector *affector) override
virtual ~PUScaleAffector (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 preUpdateAffector (float deltaTime)
local preUpdateAffector ( local deltaTime)
virtual void postUpdateAffector (float deltaTime)
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 PUScaleAffectorcreate ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PUScaleAffector(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 float DEFAULT_X_SCALE
var DEFAULT_X_SCALE
local DEFAULT_X_SCALE
static const float DEFAULT_Y_SCALE
static const float DEFAULT_Z_SCALE
static const float DEFAULT_XYZ_SCALE
var DEFAULT_XYZ_SCALE
local DEFAULT_XYZ_SCALE

Protected Member Functions

float calculateScale (PUDynamicAttribute *dynScale, PUParticle3D *particle)
 Returns the scale value for the dynamic Scale. More...
 
local calculateScale ( local dynScale, local particle)
 Returns the scale value for the dynamic Scale. 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...
 

Protected Attributes

PUDynamicAttribute_dynScaleX
PUDynamicAttribute_dynScaleY
PUDynamicAttribute_dynScaleZ
PUDynamicAttribute_dynScaleXYZ
var _dynScaleXYZ
local _dynScaleXYZ
bool _dynScaleXSet
bool _dynScaleYSet
bool _dynScaleZSet
bool _dynScaleXYZSet
PUDynamicAttributeHelper _dynamicAttributeHelper
var _dynamicAttributeHelper
bool _sinceStartSystem
float _latestTimeElapsed
- 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...
 

Constructor & Destructor Documentation

virtual ~PUScaleAffector ( void  )
virtual
var ~PUScaleAffector (   )
virtual
local ~PUScaleAffector (   )
virtual

Member Function Documentation

float calculateScale ( PUDynamicAttribute dynScale,
PUParticle3D particle 
)
protected

Returns the scale value for the dynamic Scale.

var calculateScale ( var  dynScale,
var  particle 
)
protected

Returns the scale value for the dynamic Scale.

local calculateScale ( local  dynScale,
local  particle 
)
protected

Returns the scale value for the dynamic Scale.

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 PUScaleAffector* create ( )
static
var create ( )
static
local create ( )
static
PUDynamicAttribute* getDynScaleX ( void  ) const
inline
var getDynScaleX (   )
inline
local getDynScaleX (   )
inline
PUDynamicAttribute* getDynScaleXYZ ( void  ) const
inline
var getDynScaleXYZ (   )
inline
local getDynScaleXYZ (   )
inline
PUDynamicAttribute* getDynScaleY ( void  ) const
inline
var getDynScaleY (   )
inline
local getDynScaleY (   )
inline
PUDynamicAttribute* getDynScaleZ ( void  ) const
inline
var getDynScaleZ (   )
inline
local getDynScaleZ (   )
inline
bool isSinceStartSystem ( void  ) const
inline
var isSinceStartSystem (   )
inline
local isSinceStartSystem (   )
inline
void resetDynScaleX ( bool  resetToDefault = true)
var resetDynScaleX ( var  resetToDefault = true)
local resetDynScaleX ( local  resetToDefault = true)
void resetDynScaleXYZ ( bool  resetToDefault = true)
var resetDynScaleXYZ ( var  resetToDefault = true)
local resetDynScaleXYZ ( local  resetToDefault = true)
void resetDynScaleY ( bool  resetToDefault = true)
var resetDynScaleY ( var  resetToDefault = true)
local resetDynScaleY ( local  resetToDefault = true)
void resetDynScaleZ ( bool  resetToDefault = true)
var resetDynScaleZ ( var  resetToDefault = true)
local resetDynScaleZ ( local  resetToDefault = true)
void setDynScaleX ( PUDynamicAttribute dynScaleX)
var setDynScaleX ( var  dynScaleX)
local setDynScaleX ( local  dynScaleX)
void setDynScaleXYZ ( PUDynamicAttribute dynScaleXYZ)
var setDynScaleXYZ ( var  dynScaleXYZ)
local setDynScaleXYZ ( local  dynScaleXYZ)
void setDynScaleY ( PUDynamicAttribute dynScaleY)
var setDynScaleY ( var  dynScaleY)
local setDynScaleY ( local  dynScaleY)
void setDynScaleZ ( PUDynamicAttribute dynScaleZ)
var setDynScaleZ ( var  dynScaleZ)
local setDynScaleZ ( local  dynScaleZ)
void setSinceStartSystem ( bool  sinceStartSystem)
inline
var setSinceStartSystem ( var  sinceStartSystem)
inline
local setSinceStartSystem ( local  sinceStartSystem)
inline
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__
PUDynamicAttributeHelper
_dynamicAttributeHelper
protected
var _dynamicAttributeHelper
protected
local _dynamicAttributeHelper
protected
PUDynamicAttribute* _dynScaleX
protected
var _dynScaleX
protected
local _dynScaleX
protected
bool _dynScaleXSet
protected
var _dynScaleXSet
protected
local _dynScaleXSet
protected
PUDynamicAttribute* _dynScaleXYZ
protected
var _dynScaleXYZ
protected
local _dynScaleXYZ
protected
bool _dynScaleXYZSet
protected
var _dynScaleXYZSet
protected
local _dynScaleXYZSet
protected
PUDynamicAttribute* _dynScaleY
protected
var _dynScaleY
protected
local _dynScaleY
protected
bool _dynScaleYSet
protected
var _dynScaleYSet
protected
local _dynScaleYSet
protected
PUDynamicAttribute* _dynScaleZ
protected
var _dynScaleZ
protected
local _dynScaleZ
protected
bool _dynScaleZSet
protected
var _dynScaleZSet
protected
local _dynScaleZSet
protected
float _latestTimeElapsed
protected
var _latestTimeElapsed
protected
local _latestTimeElapsed
protected
bool _sinceStartSystem
protected
var _sinceStartSystem
protected
local _sinceStartSystem
protected
const float DEFAULT_X_SCALE
static
var DEFAULT_X_SCALE
static
local DEFAULT_X_SCALE
static
const float DEFAULT_XYZ_SCALE
static
var DEFAULT_XYZ_SCALE
static
local DEFAULT_XYZ_SCALE
static
const float DEFAULT_Y_SCALE
static
var DEFAULT_Y_SCALE
static
local DEFAULT_Y_SCALE
static
const float DEFAULT_Z_SCALE
static
var DEFAULT_Z_SCALE
static
local DEFAULT_Z_SCALE
static

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