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

#include <CCNodeReader.h>

Inheritance diagram for NodeReader:
CCObject CCCopying

Public Member Functions

 NodeReader ()
virtual ~NodeReader ()
local ~NodeReader ()
void purge ()
void init ()
cocos2d::CCNodecreateNode (const std::string &filename)
var createNode ( var filename)
local createNode ( local filename)
cocos2d::CCNodeloadNodeWithFile (const std::string &fileName)
var loadNodeWithFile ( var fileName)
local loadNodeWithFile ( local fileName)
cocos2d::CCNodeloadNodeWithContent (const std::string &content)
void setRecordJsonPath (bool record)
bool isRecordJsonPath () const
void setJsonPath (std::string jsonPath)
std::string getJsonPath () const
- 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 NodeReadergetInstance ()
static void destroyInstance ()

Protected Member Functions

cocos2d::CCNodeloadNode (const rapidjson::Value &json, cocos2d::CCNode *parent=NULL)
var loadNode ( var json, var NULL)
void initNode (cocos2d::CCNode *node, const rapidjson::Value &json)
cocos2d::CCNodeloadSimpleNode (const rapidjson::Value &json, cocos2d::CCNode *parent)
local loadSimpleNode ( local json, local parent)
cocos2d::CCNodeloadSprite (const rapidjson::Value &json, cocos2d::CCNode *parent)
var loadSprite ( var json, var parent)
cocos2d::CCNodeloadParticle (const rapidjson::Value &json, cocos2d::CCNode *parent)
var loadParticle ( var json, var parent)
cocos2d::CCNodeloadWidget (const rapidjson::Value &json, cocos2d::CCNode *parent)
bool isUiWidget (const std::string &type)

Protected Attributes

cocos2d::CCDictionary_funcs
var _funcs
local _funcs
cocos2d::extension::WidgetPropertiesReader0300_guiReader
bool _recordJsonPath
std::string _jsonPath
- 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

var NodeReader ( )
local NodeReader ( )
virtual ~NodeReader ( )
virtual
var ~NodeReader ( )
virtual
local ~NodeReader ( )
virtual

Member Function Documentation

cocos2d::CCNode* createNode ( const std::string &  filename)
var createNode ( var  filename)
local createNode ( local  filename)
static void destroyInstance ( )
static
var destroyInstance ( )
static
local destroyInstance ( )
static
static NodeReader* getInstance ( )
static
var getInstance ( )
static
local getInstance ( )
static
std::string getJsonPath ( ) const
inline
var getJsonPath ( )
inline
local getJsonPath ( )
inline
void init ( )
var init ( )
local init ( )
void initNode ( cocos2d::CCNode node,
const rapidjson::Value json 
)
protected
var initNode ( var  node,
var  json 
)
protected
local initNode ( local  node,
local  json 
)
protected
bool isRecordJsonPath ( ) const
inline
var isRecordJsonPath ( )
inline
local isRecordJsonPath ( )
inline
bool isUiWidget ( const std::string &  type)
protected
var isUiWidget ( var  type)
protected
local isUiWidget ( local  type)
protected
cocos2d::CCNode* loadNode ( const rapidjson::Value json,
cocos2d::CCNode parent = NULL 
)
protected
var loadNode ( var  json,
var  parent = NULL 
)
protected
local loadNode ( local  json,
local  parent = NULL 
)
protected
cocos2d::CCNode*
loadNodeWithContent
( const std::string &  content)
var loadNodeWithContent ( var  content)
local loadNodeWithContent ( local  content)
cocos2d::CCNode* loadNodeWithFile ( const std::string &  fileName)
var loadNodeWithFile ( var  fileName)
local loadNodeWithFile ( local  fileName)
cocos2d::CCNode* loadParticle ( const rapidjson::Value json,
cocos2d::CCNode parent 
)
protected
var loadParticle ( var  json,
var  parent 
)
protected
local loadParticle ( local  json,
local  parent 
)
protected
cocos2d::CCNode* loadSimpleNode ( const rapidjson::Value json,
cocos2d::CCNode parent 
)
protected
var loadSimpleNode ( var  json,
var  parent 
)
protected
local loadSimpleNode ( local  json,
local  parent 
)
protected
cocos2d::CCNode* loadSprite ( const rapidjson::Value json,
cocos2d::CCNode parent 
)
protected
var loadSprite ( var  json,
var  parent 
)
protected
local loadSprite ( local  json,
local  parent 
)
protected
cocos2d::CCNode* loadWidget ( const rapidjson::Value json,
cocos2d::CCNode parent 
)
protected
var loadWidget ( var  json,
var  parent 
)
protected
local loadWidget ( local  json,
local  parent 
)
protected
void purge ( )
var purge ( )
local purge ( )
void setJsonPath ( std::string  jsonPath)
inline
var setJsonPath ( var  jsonPath)
inline
local setJsonPath ( local  jsonPath)
inline
void setRecordJsonPath ( bool  record)
inline
var setRecordJsonPath ( var  record)
inline
local setRecordJsonPath ( local  record)
inline

Member Data Documentation

cocos2d::CCDictionary* _funcs
protected
var _funcs
protected
local _funcs
protected
var _guiReader
protected
local _guiReader
protected
std::string _jsonPath
protected
var _jsonPath
protected
local _jsonPath
protected
bool _recordJsonPath
protected
var _recordJsonPath
protected
local _recordJsonPath
protected

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