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

#include <CCActionTimelineCache.h>

Inheritance diagram for ActionTimelineCache:
CCObject CCCopying

Public Member Functions

virtual ~ActionTimelineCache ()
void purge ()
void init ()
void removeAction (const std::string &fileName)
 Remove action with filename, and also remove other resource relate with this file. More...
 
ActionTimelinecreateAction (const std::string &fileName)
 Clone a action with the specified name from the container. More...
 
ActionTimelineloadAnimationActionWithFile (const std::string &fileName)
ActionTimelineloadAnimationActionWithContent (const std::string &fileName, const std::string &content)
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static ActionTimelineCachegetInstance ()
 Gets the singleton. More...
 
static void destroyInstance ()
 Destroys the singleton. More...
 

Protected Member Functions

TimelineloadTimeline (const rapidjson::Value &json)
FrameloadVisibleFrame (const rapidjson::Value &json)
FrameloadPositionFrame (const rapidjson::Value &json)
FrameloadScaleFrame (const rapidjson::Value &json)
FrameloadSkewFrame (const rapidjson::Value &json)
FrameloadRotationSkewFrame (const rapidjson::Value &json)
FrameloadRotationFrame (const rapidjson::Value &json)
FrameloadAnchorPointFrame (const rapidjson::Value &json)
FrameloadInnerActionFrame (const rapidjson::Value &json)
FrameloadColorFrame (const rapidjson::Value &json)
FrameloadTextureFrame (const rapidjson::Value &json)
FrameloadEventFrame (const rapidjson::Value &json)
FrameloadZOrderFrame (const rapidjson::Value &json)

Protected Attributes

cocos2d::CCDictionary_funcs
cocos2d::CCDictionary_timelineActions
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Constructor & Destructor Documentation

virtual ~ActionTimelineCache ( )
virtual

Member Function Documentation

ActionTimeline* createAction ( const std::string &  fileName)

Clone a action with the specified name from the container.

static void destroyInstance ( )
static

Destroys the singleton.

static ActionTimelineCache*
getInstance
( )
static

Gets the singleton.

void init ( )
Frame* loadAnchorPointFrame ( const rapidjson::Value json)
protected
ActionTimeline*
loadAnimationActionWithContent
( const std::string &  fileName,
const std::string &  content 
)
ActionTimeline*
loadAnimationActionWithFile
( const std::string &  fileName)
Frame* loadColorFrame ( const rapidjson::Value json)
protected
Frame* loadEventFrame ( const rapidjson::Value json)
protected
Frame* loadInnerActionFrame ( const rapidjson::Value json)
protected
Frame* loadPositionFrame ( const rapidjson::Value json)
protected
Frame* loadRotationFrame ( const rapidjson::Value json)
protected
Frame* loadRotationSkewFrame ( const rapidjson::Value json)
protected
Frame* loadScaleFrame ( const rapidjson::Value json)
protected
Frame* loadSkewFrame ( const rapidjson::Value json)
protected
Frame* loadTextureFrame ( const rapidjson::Value json)
protected
Timeline* loadTimeline ( const rapidjson::Value json)
protected
Frame* loadVisibleFrame ( const rapidjson::Value json)
protected
Frame* loadZOrderFrame ( const rapidjson::Value json)
protected
void purge ( )
void removeAction ( const std::string &  fileName)

Remove action with filename, and also remove other resource relate with this file.

Member Data Documentation

cocos2d::CCDictionary* _funcs
protected
cocos2d::CCDictionary*
_timelineActions
protected

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