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

#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 * createAction (const std::string &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)

Static Public Member Functions

static ActionTimelineCache * getInstance ()
 Gets the singleton. More...
 
local getInstance ()
 Gets the singleton. More...
 
static void destroyInstance ()
 Destroys the singleton. More...
 

Protected Types

typedef std::function< Frame
*(const rapidjson::Value &json)> 
FrameCreateFunc
typedef std::pair< std::string,
FrameCreateFunc > 
Pair

Protected Member Functions

Timeline * loadTimeline (const rapidjson::Value &json)
Frame * loadVisibleFrame (const rapidjson::Value &json)
Frame * loadPositionFrame (const rapidjson::Value &json)
var loadPositionFrame ( var json)
local loadPositionFrame ( local json)
Frame * loadScaleFrame (const rapidjson::Value &json)
var loadScaleFrame ( var json)
local loadScaleFrame ( local json)
Frame * loadSkewFrame (const rapidjson::Value &json)
var loadSkewFrame ( var json)
local loadSkewFrame ( local json)
Frame * loadRotationSkewFrame (const rapidjson::Value &json)
Frame * loadRotationFrame (const rapidjson::Value &json)
var loadRotationFrame ( var json)
local loadRotationFrame ( local json)
Frame * loadAnchorPointFrame (const rapidjson::Value &json)
var loadAnchorPointFrame ( var json)
local loadAnchorPointFrame ( local json)
Frame * loadInnerActionFrame (const rapidjson::Value &json)
var loadInnerActionFrame ( var json)
local loadInnerActionFrame ( local json)
Frame * loadColorFrame (const rapidjson::Value &json)
var loadColorFrame ( var json)
local loadColorFrame ( local json)
Frame * loadTextureFrame (const rapidjson::Value &json)
Frame * loadEventFrame (const rapidjson::Value &json)
var loadEventFrame ( var json)
local loadEventFrame ( local json)
Frame * loadZOrderFrame (const rapidjson::Value &json)
var loadZOrderFrame ( var json)
local loadZOrderFrame ( local json)

Protected Attributes

std::unordered_map
< std::string, FrameCreateFunc > 
_funcs
cocos2d::Map< std::string,
ActionTimeline * > 
_animationActions
var _animationActions
local _animationActions

Member Typedef Documentation

typedef std::function<Frame*(const
rapidjson::Value& json)>
FrameCreateFunc
protected
var FrameCreateFunc
protected
local FrameCreateFunc
protected
typedef std::pair<std::string,
FrameCreateFunc> Pair
protected
var Pair
protected
local Pair
protected

Member Function Documentation

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

Clone a action with the specified name from the container.

var createAction ( var  fileName)

Clone a action with the specified name from the container.

local createAction ( local  fileName)

Clone a action with the specified name from the container.

static void destroyInstance ( )
static

Destroys the singleton.

var destroyInstance ( )
static

Destroys the singleton.

local destroyInstance ( )
static

Destroys the singleton.

static ActionTimelineCache*
getInstance
( )
static

Gets the singleton.

var getInstance ( )
static

Gets the singleton.

local getInstance ( )
static

Gets the singleton.

void init ( )
var init ( )
local init ( )
Frame* loadAnchorPointFrame ( const rapidjson::Value &  json)
protected
var loadAnchorPointFrame ( var  json)
protected
local loadAnchorPointFrame ( local  json)
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)
Frame* loadColorFrame ( const rapidjson::Value &  json)
protected
var loadColorFrame ( var  json)
protected
local loadColorFrame ( local  json)
protected
Frame* loadEventFrame ( const rapidjson::Value &  json)
protected
var loadEventFrame ( var  json)
protected
local loadEventFrame ( local  json)
protected
Frame* loadInnerActionFrame ( const rapidjson::Value &  json)
protected
var loadInnerActionFrame ( var  json)
protected
local loadInnerActionFrame ( local  json)
protected
Frame* loadPositionFrame ( const rapidjson::Value &  json)
protected
var loadPositionFrame ( var  json)
protected
local loadPositionFrame ( local  json)
protected
Frame* loadRotationFrame ( const rapidjson::Value &  json)
protected
var loadRotationFrame ( var  json)
protected
local loadRotationFrame ( local  json)
protected
Frame* loadRotationSkewFrame ( const rapidjson::Value &  json)
protected
var loadRotationSkewFrame ( var  json)
protected
local loadRotationSkewFrame ( local  json)
protected
Frame* loadScaleFrame ( const rapidjson::Value &  json)
protected
var loadScaleFrame ( var  json)
protected
local loadScaleFrame ( local  json)
protected
Frame* loadSkewFrame ( const rapidjson::Value &  json)
protected
var loadSkewFrame ( var  json)
protected
local loadSkewFrame ( local  json)
protected
Frame* loadTextureFrame ( const rapidjson::Value &  json)
protected
var loadTextureFrame ( var  json)
protected
local loadTextureFrame ( local  json)
protected
Timeline* loadTimeline ( const rapidjson::Value &  json)
protected
var loadTimeline ( var  json)
protected
local loadTimeline ( local  json)
protected
Frame* loadVisibleFrame ( const rapidjson::Value &  json)
protected
var loadVisibleFrame ( var  json)
protected
local loadVisibleFrame ( local  json)
protected
Frame* loadZOrderFrame ( const rapidjson::Value &  json)
protected
var loadZOrderFrame ( var  json)
protected
local loadZOrderFrame ( local  json)
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.

Member Data Documentation

cocos2d::Map<std::string,
ActionTimeline*>
_animationActions
protected
var _animationActions
protected
local _animationActions
protected
std::unordered_map<std::string,
FrameCreateFunc> _funcs
protected
var _funcs
protected
local _funcs
protected

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