cocos2d-x  3.3
 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...
 
ActionTimelinecreateActionFromJson (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...
 
ActionTimelineloadAnimationActionWithFile (const std::string &fileName)
ActionTimelineloadAnimationActionWithContent (const std::string &fileName, const std::string &content)
local loadAnimationActionWithContent ( local fileName, local content)
ActionTimelinecreateActionWithFlatBuffersFile (const std::string &fileName)
ActionTimelineloadAnimationActionWithFlatBuffersFile (const std::string &fileName)
var loadAnimationActionWithFlatBuffersFile ( var fileName)
local loadAnimationActionWithFlatBuffersFile ( local fileName)
ActionTimelinecreateActionWithFlatBuffersForSimulator (const std::string &fileName)
var createActionWithFlatBuffersForSimulator ( var fileName)
local createActionWithFlatBuffersForSimulator ( local fileName)

Static Public Member Functions

static ActionTimelineCachegetInstance ()
 Gets the singleton. More...
 
local getInstance ()
 Gets the singleton. More...
 
static void destroyInstance ()
 Destroys the singleton. More...
 
var destroyInstance ()
 Destroys the singleton. More...
 
local destroyInstance ()
 Destroys the singleton. More...
 
static ActionTimelinecreateAction (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 Member Functions

TimelineloadTimeline (const rapidjson::Value &json)
FrameloadVisibleFrame (const rapidjson::Value &json)
local loadVisibleFrame ( local json)
FrameloadPositionFrame (const rapidjson::Value &json)
var loadPositionFrame ( var json)
local loadPositionFrame ( local json)
FrameloadScaleFrame (const rapidjson::Value &json)
var loadScaleFrame ( var json)
local loadScaleFrame ( local json)
FrameloadSkewFrame (const rapidjson::Value &json)
var loadSkewFrame ( var json)
local loadSkewFrame ( local json)
FrameloadRotationSkewFrame (const rapidjson::Value &json)
FrameloadRotationFrame (const rapidjson::Value &json)
var loadRotationFrame ( var json)
local loadRotationFrame ( local json)
FrameloadAnchorPointFrame (const rapidjson::Value &json)
var loadAnchorPointFrame ( var json)
local loadAnchorPointFrame ( local json)
FrameloadInnerActionFrame (const rapidjson::Value &json)
var loadInnerActionFrame ( var json)
local loadInnerActionFrame ( local json)
FrameloadColorFrame (const rapidjson::Value &json)
var loadColorFrame ( var json)
local loadColorFrame ( local json)
FrameloadTextureFrame (const rapidjson::Value &json)
FrameloadEventFrame (const rapidjson::Value &json)
var loadEventFrame ( var json)
local loadEventFrame ( local json)
FrameloadZOrderFrame (const rapidjson::Value &json)
var loadZOrderFrame ( var json)
local loadZOrderFrame ( local json)
TimelineloadTimelineWithFlatBuffers (const flatbuffers::TimeLine *flatbuffers)
local loadTimelineWithFlatBuffers ( local flatbuffers)
FrameloadVisibleFrameWithFlatBuffers (const flatbuffers::TimeLineBoolFrame *flatbuffers)
FrameloadZOrderFrameWithFlatBuffers (const flatbuffers::TimeLineIntFrame *flatbuffers)
FrameloadRotationSkewFrameWithFlatBuffers (const flatbuffers::TimeLinePointFrame *flatbuffers)
var loadRotationSkewFrameWithFlatBuffers ( var flatbuffers)
local loadRotationSkewFrameWithFlatBuffers ( local flatbuffers)
FrameloadEventFrameWithFlatBuffers (const flatbuffers::TimeLineStringFrame *flatbuffers)
FrameloadAnchorPointFrameWithFlatBuffers (const flatbuffers::TimeLinePointFrame *flatbuffers)
FrameloadPositionFrameWithFlatBuffers (const flatbuffers::TimeLinePointFrame *flatbuffers)
FrameloadScaleFrameWithFlatBuffers (const flatbuffers::TimeLinePointFrame *flatbuffers)
FrameloadColorFrameWithFlatBuffers (const flatbuffers::TimeLineColorFrame *flatbuffers)
FrameloadTextureFrameWithFlatBuffers (const flatbuffers::TimeLineTextureFrame *flatbuffers)

Protected Attributes

std::unordered_map
< std::string, FrameCreateFunc
_funcs
cocos2d::Map< std::string,
ActionTimeline * > 
_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

static ActionTimeline* createAction ( const std::string &  fileName)
static
var createAction ( var  fileName)
static
local createAction ( local  fileName)
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*
createActionWithFlatBuffersFile
( const std::string &  fileName)
var createActionWithFlatBuffersFile ( var  fileName)
local
createActionWithFlatBuffersFile
( local  fileName)
ActionTimeline*
createActionWithFlatBuffersForSimulator
( const std::string &  fileName)
var
createActionWithFlatBuffersForSimulator
( var  fileName)
local
createActionWithFlatBuffersForSimulator
( local  fileName)
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
Frame*
loadAnchorPointFrameWithFlatBuffers
( const flatbuffers::TimeLinePointFrame flatbuffers)
protected
var
loadAnchorPointFrameWithFlatBuffers
( var  flatbuffers)
protected
local
loadAnchorPointFrameWithFlatBuffers
( local  flatbuffers)
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*
loadAnimationActionWithFlatBuffersFile
( const std::string &  fileName)
var
loadAnimationActionWithFlatBuffersFile
( var  fileName)
local
loadAnimationActionWithFlatBuffersFile
( local  fileName)
Frame* loadColorFrame ( const rapidjson::Value &  json)
protected
var loadColorFrame ( var  json)
protected
local loadColorFrame ( local  json)
protected
Frame*
loadColorFrameWithFlatBuffers
( const flatbuffers::TimeLineColorFrame flatbuffers)
protected
var loadColorFrameWithFlatBuffers ( var  flatbuffers)
protected
local loadColorFrameWithFlatBuffers ( local  flatbuffers)
protected
Frame* loadEventFrame ( const rapidjson::Value &  json)
protected
var loadEventFrame ( var  json)
protected
local loadEventFrame ( local  json)
protected
Frame*
loadEventFrameWithFlatBuffers
( const flatbuffers::TimeLineStringFrame flatbuffers)
protected
var loadEventFrameWithFlatBuffers ( var  flatbuffers)
protected
local loadEventFrameWithFlatBuffers ( local  flatbuffers)
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*
loadPositionFrameWithFlatBuffers
( const flatbuffers::TimeLinePointFrame flatbuffers)
protected
var
loadPositionFrameWithFlatBuffers
( var  flatbuffers)
protected
local
loadPositionFrameWithFlatBuffers
( local  flatbuffers)
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*
loadRotationSkewFrameWithFlatBuffers
( const flatbuffers::TimeLinePointFrame flatbuffers)
protected
var
loadRotationSkewFrameWithFlatBuffers
( var  flatbuffers)
protected
local
loadRotationSkewFrameWithFlatBuffers
( local  flatbuffers)
protected
Frame* loadScaleFrame ( const rapidjson::Value &  json)
protected
var loadScaleFrame ( var  json)
protected
local loadScaleFrame ( local  json)
protected
Frame*
loadScaleFrameWithFlatBuffers
( const flatbuffers::TimeLinePointFrame flatbuffers)
protected
var loadScaleFrameWithFlatBuffers ( var  flatbuffers)
protected
local loadScaleFrameWithFlatBuffers ( local  flatbuffers)
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
Frame*
loadTextureFrameWithFlatBuffers
( const flatbuffers::TimeLineTextureFrame flatbuffers)
protected
var loadTextureFrameWithFlatBuffers ( var  flatbuffers)
protected
local
loadTextureFrameWithFlatBuffers
( local  flatbuffers)
protected
Timeline* loadTimeline ( const rapidjson::Value &  json)
protected
var loadTimeline ( var  json)
protected
local loadTimeline ( local  json)
protected
Timeline*
loadTimelineWithFlatBuffers
( const flatbuffers::TimeLine flatbuffers)
protected
var loadTimelineWithFlatBuffers ( var  flatbuffers)
protected
local loadTimelineWithFlatBuffers ( local  flatbuffers)
protected
Frame* loadVisibleFrame ( const rapidjson::Value &  json)
protected
var loadVisibleFrame ( var  json)
protected
local loadVisibleFrame ( local  json)
protected
Frame*
loadVisibleFrameWithFlatBuffers
( const flatbuffers::TimeLineBoolFrame flatbuffers)
protected
var loadVisibleFrameWithFlatBuffers ( var  flatbuffers)
protected
local
loadVisibleFrameWithFlatBuffers
( local  flatbuffers)
protected
Frame* loadZOrderFrame ( const rapidjson::Value &  json)
protected
var loadZOrderFrame ( var  json)
protected
local loadZOrderFrame ( local  json)
protected
Frame*
loadZOrderFrameWithFlatBuffers
( const flatbuffers::TimeLineIntFrame flatbuffers)
protected
var loadZOrderFrameWithFlatBuffers ( var  flatbuffers)
protected
local
loadZOrderFrameWithFlatBuffers
( local  flatbuffers)
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: