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

#include <CCPUBehaviour.h>

Inheritance diagram for PUBehaviour:
Ref PUSlaveBehaviour

Public Member Functions

const std::string & getBehaviourType (void) const
 Todo. More...
 
void setBehaviourType (const std::string &behaviourType)
virtual void notifyRescaled (const Vec3 &scale)
 Notify that the Behaviour is rescaled. More...
 
var notifyRescaled ( var scale)
 Notify that the Behaviour is rescaled. More...
 
local notifyRescaled ( local scale)
 Notify that the Behaviour is rescaled. More...
 
virtual void prepare ()
virtual void unPrepare ()
virtual void updateBehaviour (PUParticle3D *particle, float deltaTime)
local updateBehaviour ( local particle, local deltaTime)
virtual void initParticleForEmission (PUParticle3D *particle)
 Perform initialising activities as soon as the particle with which the ParticleBehaviour is associated, is emitted. More...
 
var initParticleForEmission ( var particle)
 Perform initialising activities as soon as the particle with which the ParticleBehaviour is associated, is emitted. More...
 
local initParticleForEmission ( local particle)
 Perform initialising activities as soon as the particle with which the ParticleBehaviour is associated, is emitted. More...
 
virtual void initParticleForExpiration (PUParticle3D *particle, float timeElapsed)
 Perform some action if a particle expires. More...
 
virtual PUBehaviourclone ()
virtual void copyAttributesTo (PUBehaviour *behaviour)
local copyAttributesTo ( local behaviour)
virtual ~PUBehaviour (void)
- 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...
 

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PUBehaviour(void)

Protected Attributes

PUParticleSystem3D_particleSystem
std::string _behaviourType
Vec3 _behaviourScale
 Although the scale is on a Particle System level, the behaviour can also be scaled. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Friends

class PUParticleSystem3D

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

virtual ~PUBehaviour ( void  )
virtual
var ~PUBehaviour (   )
virtual
local ~PUBehaviour (   )
virtual

Member Function Documentation

virtual PUBehaviour* clone ( )
virtual

Reimplemented in PUSlaveBehaviour.

var clone ( )
virtual

Reimplemented in PUSlaveBehaviour.

local clone ( )
virtual

Reimplemented in PUSlaveBehaviour.

virtual void copyAttributesTo ( PUBehaviour behaviour)
virtual

Reimplemented in PUSlaveBehaviour.

var copyAttributesTo ( var  behaviour)
virtual

Reimplemented in PUSlaveBehaviour.

local copyAttributesTo ( local  behaviour)
virtual

Reimplemented in PUSlaveBehaviour.

const std::string& getBehaviourType ( void  ) const
inline

Todo.

var getBehaviourType (   )
inline

Todo.

local getBehaviourType (   )
inline

Todo.

virtual void
initParticleForEmission
( PUParticle3D particle)
inlinevirtual

Perform initialising activities as soon as the particle with which the ParticleBehaviour is associated, is emitted.

var initParticleForEmission ( var  particle)
inlinevirtual

Perform initialising activities as soon as the particle with which the ParticleBehaviour is associated, is emitted.

local initParticleForEmission ( local  particle)
inlinevirtual

Perform initialising activities as soon as the particle with which the ParticleBehaviour is associated, is emitted.

virtual void
initParticleForExpiration
( PUParticle3D particle,
float  timeElapsed 
)
inlinevirtual

Perform some action if a particle expires.

var initParticleForExpiration ( var  particle,
var  timeElapsed 
)
inlinevirtual

Perform some action if a particle expires.

local initParticleForExpiration ( local  particle,
local  timeElapsed 
)
inlinevirtual

Perform some action if a particle expires.

virtual void notifyRescaled ( const Vec3 scale)
inlinevirtual

Notify that the Behaviour is rescaled.

var notifyRescaled ( var  scale)
inlinevirtual

Notify that the Behaviour is rescaled.

local notifyRescaled ( local  scale)
inlinevirtual

Notify that the Behaviour is rescaled.

virtual void prepare ( )
inlinevirtual
var prepare ( )
inlinevirtual
local prepare ( )
inlinevirtual
void setBehaviourType ( const std::string &  behaviourType)
inline
var setBehaviourType ( var  behaviourType)
inline
local setBehaviourType ( local  behaviourType)
inline
virtual void unPrepare ( )
inlinevirtual
var unPrepare ( )
inlinevirtual
local unPrepare ( )
inlinevirtual
virtual void updateBehaviour ( PUParticle3D particle,
float  deltaTime 
)
inlinevirtual

Reimplemented in PUSlaveBehaviour.

var updateBehaviour ( var  particle,
var  deltaTime 
)
inlinevirtual

Reimplemented in PUSlaveBehaviour.

local updateBehaviour ( local  particle,
local  deltaTime 
)
inlinevirtual

Reimplemented in PUSlaveBehaviour.

Friends And Related Function Documentation

friend class PUParticleSystem3D
friend
var PUParticleSystem3D
friend
local PUParticleSystem3D
friend

Member Data Documentation

var __pad0__
local __pad0__
Vec3 _behaviourScale
protected

Although the scale is on a Particle System level, the behaviour can also be scaled.

var _behaviourScale
protected

Although the scale is on a Particle System level, the behaviour can also be scaled.

local _behaviourScale
protected

Although the scale is on a Particle System level, the behaviour can also be scaled.

std::string _behaviourType
protected
var _behaviourType
protected
local _behaviourType
protected
PUParticleSystem3D* _particleSystem
protected
var _particleSystem
protected
local _particleSystem
protected

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