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

#include <CCPUDoEnableComponentEventHandler.h>

Inheritance diagram for PUDoEnableComponentEventHandler:
PUEventHandler Ref

Public Member Functions

const std::string & getComponentName (void) const
 Get the name of the component that must be enabled or disabled. More...
 
void setComponentName (const std::string &componentName)
 Set the name of the component that must be enabled or disables. More...
 
var setComponentName ( var componentName)
 Set the name of the component that must be enabled or disables. More...
 
local setComponentName ( local componentName)
 Set the name of the component that must be enabled or disables. More...
 
bool isComponentEnabled (void) const
 Get the value that identifies whether the component must be enabled or disabled. More...
 
void setComponentEnabled (bool enabled)
 Set the value that identifies whether the component must be enabled or disabled. More...
 
PUComponentType getComponentType (void) const
 Get the value that identifies whether the component must be enabled or disabled. More...
 
void setComponentType (PUComponentType componentType)
 Set the value that identifies whether the component must be enabled or disabled. More...
 
virtual void handle (PUParticleSystem3D *particleSystem, PUParticle3D *particle, float timeElapsed) override
 If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter, ParticleAffector or ParticleTechnique defined by the its name. More...
 
local handle ( local particleSystem, local particle, local timeElapsed)
 If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter, ParticleAffector or ParticleTechnique defined by the its name. More...
 
virtual void copyAttributesTo (PUEventHandler *eventHandler) override
virtual ~PUDoEnableComponentEventHandler (void)
- Public Member Functions inherited from PUEventHandler
const std::string & getName (void) const
 Todo. More...
 
local getName ()
 Todo. More...
 
void setName (const std::string &name)
PUObservergetParentObserver (void) const
 Todo. More...
 
var getParentObserver ()
 Todo. More...
 
local getParentObserver ()
 Todo. More...
 
void setParentObserver (PUObserver *parentObserver)
const std::string & getEventHandlerType (void) const
 Todo. More...
 
local getEventHandlerType ()
 Todo. More...
 
void setEventHandlerType (const std::string &eventHandlerType)
virtual void notifyRescaled (const Vec3 &scale)
 Notify that the event handler is rescaled. More...
 
virtual ~PUEventHandler ()
- 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
PUDoEnableComponentEventHandler
create ()
local create ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PUDoEnableComponentEventHandler(void)
- Public Attributes inherited from PUEventHandler
CC_CONSTRUCTOR_ACCESS __pad0__: PUEventHandler()
var __pad0__: PUEventHandler()
local __pad0__: PUEventHandler()

Protected Attributes

std::string _componentName
PUComponentType _componentType
bool _componentEnabled
 Determines whether the Component must be enabled or disabled. More...
 
var _componentEnabled
 Determines whether the Component must be enabled or disabled. More...
 
local _componentEnabled
 Determines whether the Component must be enabled or disabled. More...
 
- Protected Attributes inherited from PUEventHandler
PUObserver_parentObserver
std::string _eventHandlerType
std::string _name
Vec3 _eventHandlerScale
 Although the scale is on a Particle System level, the event handler can also be scaled. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

virtual
~PUDoEnableComponentEventHandler
( void  )
inlinevirtual
var
~PUDoEnableComponentEventHandler
(   )
inlinevirtual
local
~PUDoEnableComponentEventHandler
(   )
inlinevirtual

Member Function Documentation

virtual void copyAttributesTo ( PUEventHandler eventHandler)
overridevirtual

Reimplemented from PUEventHandler.

var copyAttributesTo ( var  eventHandler)
overridevirtual

Reimplemented from PUEventHandler.

local copyAttributesTo ( local  eventHandler)
overridevirtual

Reimplemented from PUEventHandler.

static
PUDoEnableComponentEventHandler*
create
( )
static
var create ( )
static
local create ( )
static
const std::string& getComponentName ( void  ) const
inline

Get the name of the component that must be enabled or disabled.

var getComponentName (   )
inline

Get the name of the component that must be enabled or disabled.

local getComponentName (   )
inline

Get the name of the component that must be enabled or disabled.

PUComponentType getComponentType ( void  ) const
inline

Get the value that identifies whether the component must be enabled or disabled.

var getComponentType (   )
inline

Get the value that identifies whether the component must be enabled or disabled.

local getComponentType (   )
inline

Get the value that identifies whether the component must be enabled or disabled.

virtual void handle ( PUParticleSystem3D particleSystem,
PUParticle3D particle,
float  timeElapsed 
)
overridevirtual

If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter, ParticleAffector or ParticleTechnique defined by the its name.

The ParticleEmitter/Affector is either part of the ParticleTechnique in which the DoEnableComponentEventHandler is defined, or if the ParticleEmitter/Affector is not found, other ParticleTechniques are searched.

Implements PUEventHandler.

var handle ( var  particleSystem,
var  particle,
var  timeElapsed 
)
overridevirtual

If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter, ParticleAffector or ParticleTechnique defined by the its name.

The ParticleEmitter/Affector is either part of the ParticleTechnique in which the DoEnableComponentEventHandler is defined, or if the ParticleEmitter/Affector is not found, other ParticleTechniques are searched.

Implements PUEventHandler.

local handle ( local  particleSystem,
local  particle,
local  timeElapsed 
)
overridevirtual

If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter, ParticleAffector or ParticleTechnique defined by the its name.

The ParticleEmitter/Affector is either part of the ParticleTechnique in which the DoEnableComponentEventHandler is defined, or if the ParticleEmitter/Affector is not found, other ParticleTechniques are searched.

Implements PUEventHandler.

bool isComponentEnabled ( void  ) const
inline

Get the value that identifies whether the component must be enabled or disabled.

var isComponentEnabled (   )
inline

Get the value that identifies whether the component must be enabled or disabled.

local isComponentEnabled (   )
inline

Get the value that identifies whether the component must be enabled or disabled.

void setComponentEnabled ( bool  enabled)
inline

Set the value that identifies whether the component must be enabled or disabled.

var setComponentEnabled ( var  enabled)
inline

Set the value that identifies whether the component must be enabled or disabled.

local setComponentEnabled ( local  enabled)
inline

Set the value that identifies whether the component must be enabled or disabled.

void setComponentName ( const std::string &  componentName)
inline

Set the name of the component that must be enabled or disables.

var setComponentName ( var  componentName)
inline

Set the name of the component that must be enabled or disables.

local setComponentName ( local  componentName)
inline

Set the name of the component that must be enabled or disables.

void setComponentType ( PUComponentType  componentType)
inline

Set the value that identifies whether the component must be enabled or disabled.

var setComponentType ( var  componentType)
inline

Set the value that identifies whether the component must be enabled or disabled.

local setComponentType ( local  componentType)
inline

Set the value that identifies whether the component must be enabled or disabled.

Member Data Documentation

bool _componentEnabled
protected

Determines whether the Component must be enabled or disabled.

var _componentEnabled
protected

Determines whether the Component must be enabled or disabled.

local _componentEnabled
protected

Determines whether the Component must be enabled or disabled.

std::string _componentName
protected
var _componentName
protected
local _componentName
protected
PUComponentType _componentType
protected
var _componentType
protected
local _componentType
protected

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