#include <CCActionTimelineCache.h>
Public Member Functions | |
| void | purge () |
| var | purge () |
| local | purge () |
| void | init () |
| void | removeAction (const std::string &fileName) |
| Remove action with filename, and also remove other resource relate with this file. More... | |
| ActionTimeline * | createActionFromJson (const std::string &fileName) |
| Clone a action with the specified name from the container. More... | |
| local | createActionFromJson ( local fileName) |
| Clone a action with the specified name from the container. More... | |
| ActionTimeline * | loadAnimationActionWithFile (const std::string &fileName) |
| ActionTimeline * | loadAnimationActionWithContent (const std::string &fileName, const std::string &content) |
| local | loadAnimationActionWithContent ( local fileName, local content) |
| ActionTimeline * | createActionFromProtocolBuffers (const std::string &fileName) |
| ActionTimeline * | loadAnimationActionWithFileFromProtocolBuffers (const std::string &fileName) |
| var | loadAnimationActionWithFileFromProtocolBuffers ( var fileName) |
| local | loadAnimationActionWithFileFromProtocolBuffers ( local fileName) |
| ActionTimeline * | createActionFromXML (const std::string &fileName) |
| var | createActionFromXML ( var fileName) |
| local | createActionFromXML ( local fileName) |
| ActionTimeline * | loadAnimationActionWithFileFromXML (const std::string &fileName) |
| var | loadAnimationActionWithFileFromXML ( var fileName) |
| local | loadAnimationActionWithFileFromXML ( local fileName) |
| ActionTimeline * | loadActionTimelineFromXML (const tinyxml2::XMLElement *animationElement) |
| var | loadActionTimelineFromXML ( var animationElement) |
| local | loadActionTimelineFromXML ( local animationElement) |
Static Public Member Functions | |
| static ActionTimelineCache * | getInstance () |
| Gets the singleton. More... | |
| local | getInstance () |
| Gets the singleton. More... | |
| static void | destroyInstance () |
| Destroys the singleton. More... | |
| static ActionTimeline * | createAction (const std::string &fileName) |
| local | createAction ( local fileName) |
Protected Types | |
| typedef std::function< Frame *(const rapidjson::Value &json)> | FrameCreateFunc |
| typedef std::pair< std::string, FrameCreateFunc > | Pair |
Protected Attributes | |
| std::unordered_map < std::string, FrameCreateFunc > | _funcs |
| cocos2d::Map< std::string, ActionTimeline * > | _animationActions |
| var | _animationActions |
| local | _animationActions |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
| ActionTimeline* createActionFromJson |
( | const std::string & | fileName | ) |
Clone a action with the specified name from the container.
| var createActionFromJson | ( | var | fileName | ) |
Clone a action with the specified name from the container.
| local createActionFromJson | ( | local | fileName | ) |
Clone a action with the specified name from the container.
| ActionTimeline* createActionFromProtocolBuffers |
( | const std::string & | fileName | ) |
| var createActionFromProtocolBuffers | ( | var | fileName | ) |
| local createActionFromProtocolBuffers |
( | local | fileName | ) |
| ActionTimeline* createActionFromXML | ( | const std::string & | fileName | ) |
| var createActionFromXML | ( | var | fileName | ) |
| local createActionFromXML | ( | local | fileName | ) |
|
static |
Destroys the singleton.
|
static |
Destroys the singleton.
|
static |
Destroys the singleton.
|
static |
Gets the singleton.
|
static |
Gets the singleton.
|
static |
Gets the singleton.
| void init | ( | ) |
| var init | ( | ) |
| local init | ( | ) |
| ActionTimeline* loadActionTimelineFromXML |
( | const tinyxml2::XMLElement * | animationElement | ) |
| var loadActionTimelineFromXML | ( | var | animationElement | ) |
| local loadActionTimelineFromXML | ( | local | animationElement | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| ActionTimeline* loadAnimationActionWithContent |
( | const std::string & | fileName, |
| const std::string & | content | ||
| ) |
| var loadAnimationActionWithContent | ( | var | fileName, |
| var | content | ||
| ) |
| local loadAnimationActionWithContent |
( | local | fileName, |
| local | content | ||
| ) |
| ActionTimeline* loadAnimationActionWithFile |
( | const std::string & | fileName | ) |
| var loadAnimationActionWithFile | ( | var | fileName | ) |
| local loadAnimationActionWithFile | ( | local | fileName | ) |
| ActionTimeline* loadAnimationActionWithFileFromProtocolBuffers |
( | const std::string & | fileName | ) |
| var loadAnimationActionWithFileFromProtocolBuffers |
( | var | fileName | ) |
| local loadAnimationActionWithFileFromProtocolBuffers |
( | local | fileName | ) |
| ActionTimeline* loadAnimationActionWithFileFromXML |
( | const std::string & | fileName | ) |
| var loadAnimationActionWithFileFromXML |
( | var | fileName | ) |
| local loadAnimationActionWithFileFromXML |
( | local | fileName | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void purge | ( | ) |
| var purge | ( | ) |
| local purge | ( | ) |
| void removeAction | ( | const std::string & | fileName | ) |
Remove action with filename, and also remove other resource relate with this file.
| var removeAction | ( | var | fileName | ) |
Remove action with filename, and also remove other resource relate with this file.
| local removeAction | ( | local | fileName | ) |
Remove action with filename, and also remove other resource relate with this file.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |