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

This class is an implementation of the DynamicAttribute class in its most simple form. More...

Inherits PUDynamicAttribute.

Public Member Functions

 PUDynamicAttributeFixed (void)
 Constructor.
 
 PUDynamicAttributeFixed ()
 Constructor.
 
 PUDynamicAttributeFixed ()
 Constructor.
 
 PUDynamicAttributeFixed (const PUDynamicAttributeFixed &dynamicAttributeFixed)
 Copy constructor.
 
 ~PUDynamicAttributeFixed (void)
 Destructor.
 
virtual float getValue (float x=0) override
 override
 
virtual void setValue (float value)
 Set the fixed value. More...
 
local setValue ( local value)
 Set the fixed value. More...
 
virtual PUDynamicAttributeFixedclone () override
 override
 
virtual void copyAttributesTo (PUDynamicAttribute *dynamicAttribute) override
 override
 
local copyAttributesTo ( local dynamicAttribute)
 override
 
- Public Member Functions inherited from PUDynamicAttribute
 PUDynamicAttribute (void)
 Constructor.
 
virtual ~PUDynamicAttribute (void)
 Destructor.
 
DynamicAttributeType getType (void) const
 Get the type of dynamic attribute. More...
 
local getType ()
 Get the type of dynamic attribute. More...
 
void setType (DynamicAttributeType type)
 Set the type of dynamic attribute. More...
 
bool isValueChangedExternally (void) const
 Returns true if one of the attributes was changed by an external source. More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
local 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...
 
local getReferenceCount ()
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
local _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
local _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
local _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 
local _rooted
 When true, it means that the object was already rooted.
 
bool _scriptOwned
 The life of the object is scrolled by the scripting engine. More...
 
local _scriptOwned
 The life of the object is scrolled by the scripting engine. More...
 

Detailed Description

This class is an implementation of the DynamicAttribute class in its most simple form.

It just returns a value that has previously been set.Although use of a regular attribute within the class that needs it is preferred, its benefit is that it makes use of the generic 'getValue' mechanism of a DynamicAttribute.

Member Function Documentation

virtual void setValue ( float  value)
virtual

Set the fixed value.

The fixed value.

var setValue ( var  value)
virtual

Set the fixed value.

The fixed value.

local setValue ( local  value)
virtual

Set the fixed value.

The fixed value.


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