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

#include <CCPUDoScaleEventHandler.h>

Inheritance diagram for PUDoScaleEventHandler:
PUEventHandler Ref

Public Types

enum  ScaleType { ST_TIME_TO_LIVE, ST_VELOCITY }
 

Public Member Functions

const ScaleTypegetScaleType (void) const
 Returns the scale type. More...
 
local getScaleType ()
 Returns the scale type. More...
 
void setScaleType (const ScaleType &scaleType)
 Set the scale type. More...
 
const float getScaleFraction (void) const
 Returns the scale fraction. More...
 
void setScaleFraction (const float scaleFraction)
 Set the scale fraction. More...
 
virtual void handle (PUParticleSystem3D *particleSystem, PUParticle3D *particle, float timeElapsed) override
 Todo. More...
 
virtual void copyAttributesTo (PUEventHandler *eventHandler) override
virtual ~PUDoScaleEventHandler (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 PUDoScaleEventHandlercreate ()
local create ()

Public Attributes

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

Static Public Attributes

static const ScaleType DEFAULT_SCALE_TYPE
static const float DEFAULT_SCALE_FRACTION

Protected Attributes

float _scaleFraction
ScaleType _scaleType
- 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...
 

Member Enumeration Documentation

enum ScaleType
Enumerator
ST_TIME_TO_LIVE 
ST_VELOCITY 
var ScaleType
Enumerator
ST_TIME_TO_LIVE 
ST_VELOCITY 
local ScaleType
Enumerator
ST_TIME_TO_LIVE 
ST_VELOCITY 

Constructor & Destructor Documentation

virtual ~PUDoScaleEventHandler ( void  )
inlinevirtual
var ~PUDoScaleEventHandler (   )
inlinevirtual
local ~PUDoScaleEventHandler (   )
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 PUDoScaleEventHandler*
create
( )
static
var create ( )
static
local create ( )
static
const float getScaleFraction ( void  ) const

Returns the scale fraction.

var getScaleFraction (   )

Returns the scale fraction.

local getScaleFraction (   )

Returns the scale fraction.

const ScaleType& getScaleType ( void  ) const

Returns the scale type.

var getScaleType (   )

Returns the scale type.

local getScaleType (   )

Returns the scale type.

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

Todo.

Implements PUEventHandler.

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

Todo.

Implements PUEventHandler.

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

Todo.

Implements PUEventHandler.

void setScaleFraction ( const float  scaleFraction)

Set the scale fraction.

This scale fraction value is used to scale different attributes if the event handler is called.

var setScaleFraction ( var  scaleFraction)

Set the scale fraction.

This scale fraction value is used to scale different attributes if the event handler is called.

local setScaleFraction ( local  scaleFraction)

Set the scale fraction.

This scale fraction value is used to scale different attributes if the event handler is called.

void setScaleType ( const ScaleType scaleType)

Set the scale type.

This scale type identifies to which attribute the scale factor is applied.

var setScaleType ( var  scaleType)

Set the scale type.

This scale type identifies to which attribute the scale factor is applied.

local setScaleType ( local  scaleType)

Set the scale type.

This scale type identifies to which attribute the scale factor is applied.

Member Data Documentation

var __pad0__
local __pad0__
float _scaleFraction
protected
var _scaleFraction
protected
local _scaleFraction
protected
ScaleType _scaleType
protected
var _scaleType
protected
local _scaleType
protected
const float DEFAULT_SCALE_FRACTION
static
var DEFAULT_SCALE_FRACTION
static
local DEFAULT_SCALE_FRACTION
static
const ScaleType DEFAULT_SCALE_TYPE
static
var DEFAULT_SCALE_TYPE
static
local DEFAULT_SCALE_TYPE
static

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