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

#include <CCPUTextureAnimator.h>

Inheritance diagram for PUTextureAnimator:
PUAffector Particle3DAffector Ref

Public Types

enum  TextureAnimationType { TAT_LOOP, TAT_UP_DOWN, TAT_RANDOM }
 
- 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...
 

Public Member Functions

virtual void preUpdateAffector (float deltaTime) override
local preUpdateAffector ( local deltaTime)
virtual void initParticleForEmission (PUParticle3D *particle) override
virtual void updatePUAffector (PUParticle3D *particle, float deltaTime) override
local updatePUAffector ( local particle, local deltaTime)
float getAnimationTimeStep (void) const
 Returns the AnimationTimeStep. More...
 
void setAnimationTimeStep (float animationTimeStep)
 Set the AnimationTimeStep. More...
 
TextureAnimationType getTextureAnimationType (void) const
 Returns the type of texture animation. More...
 
void setTextureAnimationType (TextureAnimationType textureAnimationType)
 Set the type of texture animation. More...
 
var setTextureAnimationType ( var textureAnimationType)
 Set the type of texture animation. More...
 
local setTextureAnimationType ( local textureAnimationType)
 Set the type of texture animation. More...
 
unsigned short getTextureCoordsStart (void) const
 Todo. More...
 
void setTextureCoordsStart (unsigned short textureCoordsStart)
 Todo. More...
 
unsigned short getTextureCoordsEnd (void) const
 Todo. More...
 
void setTextureCoordsEnd (unsigned short textureCoordsEnd)
 Todo. More...
 
bool isStartRandom (void) const
 Todo. More...
 
void setStartRandom (bool startRandom)
 Todo. More...
 
virtual void copyAttributesTo (PUAffector *affector) override
virtual ~PUTextureAnimator (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 postUpdateAffector (float deltaTime)
virtual void firstParticleUpdate (PUParticle3D *particle, float deltaTime)
var firstParticleUpdate ( var particle, var deltaTime)
local firstParticleUpdate ( local particle, local deltaTime)
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 PUTextureAnimatorcreate ()
local create ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PUTextureAnimator(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_TIME_STEP
static const unsigned short DEFAULT_TEXCOORDS_START
static const unsigned short DEFAULT_TEXCOORDS_END
local DEFAULT_TEXCOORDS_END
static const TextureAnimationType DEFAULT_ANIMATION_TYPE
static const bool DEFAULT_START_RANDOM

Protected Member Functions

void determineNextTextureCoords (PUParticle3D *visualParticle)
 Todo. 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

float _animationTimeStep
float _animationTimeStepCount
bool _startRandom
bool _animationTimeStepSet
bool _nextIndex
TextureAnimationType _textureAnimationType
var _textureAnimationType
local _textureAnimationType
unsigned short _textureCoordsStart
unsigned short _textureCoordsEnd
- 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...
 

Member Enumeration Documentation

Enumerator
TAT_LOOP 
TAT_UP_DOWN 
TAT_RANDOM 
Enumerator
TAT_LOOP 
TAT_UP_DOWN 
TAT_RANDOM 
Enumerator
TAT_LOOP 
TAT_UP_DOWN 
TAT_RANDOM 

Constructor & Destructor Documentation

virtual ~PUTextureAnimator ( void  )
virtual
var ~PUTextureAnimator (   )
virtual
local ~PUTextureAnimator (   )
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 PUTextureAnimator* create ( )
static
var create ( )
static
local create ( )
static
void determineNextTextureCoords ( PUParticle3D visualParticle)
protected

Todo.

var determineNextTextureCoords ( var  visualParticle)
protected

Todo.

local determineNextTextureCoords ( local  visualParticle)
protected

Todo.

float getAnimationTimeStep ( void  ) const

Returns the AnimationTimeStep.

The AnimationTimeStep defines the time between each animation frame.

var getAnimationTimeStep (   )

Returns the AnimationTimeStep.

The AnimationTimeStep defines the time between each animation frame.

local getAnimationTimeStep (   )

Returns the AnimationTimeStep.

The AnimationTimeStep defines the time between each animation frame.

TextureAnimationType
getTextureAnimationType
( void  ) const

Returns the type of texture animation.

var getTextureAnimationType (   )

Returns the type of texture animation.

local getTextureAnimationType (   )

Returns the type of texture animation.

unsigned short getTextureCoordsEnd ( void  ) const

Todo.

var getTextureCoordsEnd (   )

Todo.

local getTextureCoordsEnd (   )

Todo.

unsigned short
getTextureCoordsStart
( void  ) const

Todo.

var getTextureCoordsStart (   )

Todo.

local getTextureCoordsStart (   )

Todo.

virtual void
initParticleForEmission
( PUParticle3D particle)
overridevirtual

Reimplemented from PUAffector.

var initParticleForEmission ( var  particle)
overridevirtual

Reimplemented from PUAffector.

local initParticleForEmission ( local  particle)
overridevirtual

Reimplemented from PUAffector.

bool isStartRandom ( void  ) const

Todo.

var isStartRandom (   )

Todo.

local isStartRandom (   )

Todo.

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 setAnimationTimeStep ( float  animationTimeStep)

Set the AnimationTimeStep.

var setAnimationTimeStep ( var  animationTimeStep)

Set the AnimationTimeStep.

local setAnimationTimeStep ( local  animationTimeStep)

Set the AnimationTimeStep.

void setStartRandom ( bool  startRandom)

Todo.

var setStartRandom ( var  startRandom)

Todo.

local setStartRandom ( local  startRandom)

Todo.

void setTextureAnimationType ( TextureAnimationType  textureAnimationType)

Set the type of texture animation.

var setTextureAnimationType ( var  textureAnimationType)

Set the type of texture animation.

local setTextureAnimationType ( local  textureAnimationType)

Set the type of texture animation.

void setTextureCoordsEnd ( unsigned short  textureCoordsEnd)

Todo.

var setTextureCoordsEnd ( var  textureCoordsEnd)

Todo.

local setTextureCoordsEnd ( local  textureCoordsEnd)

Todo.

void setTextureCoordsStart ( unsigned short  textureCoordsStart)

Todo.

var setTextureCoordsStart ( var  textureCoordsStart)

Todo.

local setTextureCoordsStart ( local  textureCoordsStart)

Todo.

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 _animationTimeStep
protected
var _animationTimeStep
protected
local _animationTimeStep
protected
float _animationTimeStepCount
protected
var _animationTimeStepCount
protected
local _animationTimeStepCount
protected
bool _animationTimeStepSet
protected
var _animationTimeStepSet
protected
local _animationTimeStepSet
protected
bool _nextIndex
protected
var _nextIndex
protected
local _nextIndex
protected
bool _startRandom
protected
var _startRandom
protected
local _startRandom
protected
TextureAnimationType
_textureAnimationType
protected
var _textureAnimationType
protected
local _textureAnimationType
protected
unsigned short _textureCoordsEnd
protected
var _textureCoordsEnd
protected
local _textureCoordsEnd
protected
unsigned short _textureCoordsStart
protected
var _textureCoordsStart
protected
local _textureCoordsStart
protected
const TextureAnimationType
DEFAULT_ANIMATION_TYPE
static
var DEFAULT_ANIMATION_TYPE
static
local DEFAULT_ANIMATION_TYPE
static
const bool DEFAULT_START_RANDOM
static
var DEFAULT_START_RANDOM
static
local DEFAULT_START_RANDOM
static
const unsigned short
DEFAULT_TEXCOORDS_END
static
var DEFAULT_TEXCOORDS_END
static
local DEFAULT_TEXCOORDS_END
static
const unsigned short
DEFAULT_TEXCOORDS_START
static
var DEFAULT_TEXCOORDS_START
static
local DEFAULT_TEXCOORDS_START
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: