Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
PUDynamicAttributeHelper Class Reference

Helper class to do some generic calculation. More...

Public Member Functions

float calculate (PUDynamicAttribute *dyn, float x, float defaultValue=0.0f)
 Return PUDynamicAttribute getvalue if dyn != null, otherwise, return defaultValue. More...
 
var calculate ( var dyn, var x, var 0f)
 Return PUDynamicAttribute getvalue if dyn != null, otherwise, return defaultValue. More...
 
local calculate ( local dyn, local x, local 0f)
 Return PUDynamicAttribute getvalue if dyn != null, otherwise, return defaultValue. More...
 

Detailed Description

Helper class to do some generic calculation.

Member Function Documentation

float calculate ( PUDynamicAttribute dyn,
float  x,
float  defaultValue = 0.0f 
)

Return PUDynamicAttribute getvalue if dyn != null, otherwise, return defaultValue.

The Value.

var calculate ( var  dyn,
var  x,
var  defaultValue = 0.0f 
)

Return PUDynamicAttribute getvalue if dyn != null, otherwise, return defaultValue.

The Value.

local calculate ( local  dyn,
local  x,
local  defaultValue = 0.0f 
)

Return PUDynamicAttribute getvalue if dyn != null, otherwise, return defaultValue.

The Value.


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