cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MovementData Class Reference

#include <CCDatas.h>

Inheritance diagram for MovementData:
Object

Public Member Functions

 MovementData (void)
 ~MovementData (void)
void addMovementBoneData (MovementBoneData *movBoneData)
MovementBoneDatagetMovementBoneData (const char *boneName)
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
virtual void update (float dt)

Static Public Member Functions

static MovementDatacreate (void)

Public Attributes

std::string name
int duration
float scale
 the frames this movement will last More...
 
int durationTo
 scale this movement More...
 
int durationTween
bool loop
CCTweenType tweenEasing
 whether the movement was looped More...
 
Dictionary movBoneDataDic
 save movment bone data const char * MovementBoneData * More...
 
- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Additional Inherited Members

- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
var _reference
 count of references More...
 
local _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 
var _autoReleaseCount
 count of autorelease More...
 
local _autoReleaseCount
 count of autorelease More...
 

Constructor & Destructor Documentation

MovementData ( void  )
~MovementData ( void  )

Member Function Documentation

void addMovementBoneData ( MovementBoneData movBoneData)
static MovementData* create ( void  )
inlinestatic
MovementBoneData*
getMovementBoneData
( const char *  boneName)

Member Data Documentation

int duration
int durationTo

scale this movement

Change to this movement will last durationTo frames. Use this effect can avoid too suddenly changing.

Example : current movement is "stand", we want to change to "run", then we fill durationTo frames before change to "run" instead of changing to "run" directly.

int durationTween
bool loop
Dictionary movBoneDataDic

save movment bone data const char * MovementBoneData *

std::string name
float scale

the frames this movement will last

CCTweenType tweenEasing

whether the movement was looped

Which tween easing effect the movement use TWEEN_EASING_MAX : use the value from MovementData get from flash design panel


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