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

#include <CCPUDynamicAttribute.h>

Inheritance diagram for PUDynamicAttribute:
Ref PUDynamicAttributeCurved PUDynamicAttributeFixed PUDynamicAttributeOscillate PUDynamicAttributeRandom

Public Types

enum  DynamicAttributeType { DAT_FIXED, DAT_RANDOM, DAT_CURVED, DAT_OSCILLATE }
 

Public Member Functions

 PUDynamicAttribute (void)
 Constructor. More...
 
virtual ~PUDynamicAttribute (void)
 Destructor. More...
 
virtual float getValue (float x=0)=0
 Virtual function that needs to be implemented by its childs. More...
 
DynamicAttributeType getType (void) const
 Todo. More...
 
void setType (DynamicAttributeType type)
 Todo. More...
 
bool isValueChangedExternally (void) const
 Returns true if one of the attributes was changed by an external source. More...
 
virtual void copyAttributesTo (PUDynamicAttribute *dynamicAttribute)=0
local copyAttributesTo ( local dynamicAttribute)
virtual PUDynamicAttributeclone ()=0
var clone ()
local clone ()
- 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...
 

Protected Attributes

DynamicAttributeType _type
bool _valueChangedExternally
- 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

Enumerator
DAT_FIXED 
DAT_RANDOM 
DAT_CURVED 
DAT_OSCILLATE 
Enumerator
DAT_FIXED 
DAT_RANDOM 
DAT_CURVED 
DAT_OSCILLATE 
Enumerator
DAT_FIXED 
DAT_RANDOM 
DAT_CURVED 
DAT_OSCILLATE 

Constructor & Destructor Documentation

PUDynamicAttribute ( void  )

Constructor.

var PUDynamicAttribute (   )

Constructor.

local PUDynamicAttribute (   )

Constructor.

virtual ~PUDynamicAttribute ( void  )
virtual

Destructor.

var ~PUDynamicAttribute (   )
virtual

Destructor.

local ~PUDynamicAttribute (   )
virtual

Destructor.

Member Function Documentation

virtual void copyAttributesTo ( PUDynamicAttribute dynamicAttribute)
pure virtual
var copyAttributesTo ( var  dynamicAttribute)
pure virtual
local copyAttributesTo ( local  dynamicAttribute)
pure virtual
DynamicAttributeType getType ( void  ) const

Todo.

var getType (   )

Todo.

local getType (   )

Todo.

virtual float getValue ( float  x = 0)
pure virtual

Virtual function that needs to be implemented by its childs.

Implemented in PUDynamicAttributeOscillate, PUDynamicAttributeCurved, PUDynamicAttributeRandom, and PUDynamicAttributeFixed.

var getValue ( var  x = 0)
pure virtual

Virtual function that needs to be implemented by its childs.

Implemented in PUDynamicAttributeOscillate, PUDynamicAttributeCurved, PUDynamicAttributeRandom, and PUDynamicAttributeFixed.

local getValue ( local  x = 0)
pure virtual

Virtual function that needs to be implemented by its childs.

Implemented in PUDynamicAttributeOscillate, PUDynamicAttributeCurved, PUDynamicAttributeRandom, and PUDynamicAttributeFixed.

bool isValueChangedExternally ( void  ) const

Returns true if one of the attributes was changed by an external source.

var isValueChangedExternally (   )

Returns true if one of the attributes was changed by an external source.

local isValueChangedExternally (   )

Returns true if one of the attributes was changed by an external source.

void setType ( DynamicAttributeType  type)

Todo.

var setType ( var  type)

Todo.

local setType ( local  type)

Todo.

Member Data Documentation

DynamicAttributeType _type
protected
var _type
protected
local _type
protected
bool _valueChangedExternally
protected
var _valueChangedExternally
protected
local _valueChangedExternally
protected

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