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

@ More...

#include <CCBReader.h>

Inheritance diagram for CCBReader:
CCObject CCCopying

Public Member Functions

 CCBReader (CCNodeLoaderLibrary *pCCNodeLoaderLibrary, CCBMemberVariableAssigner *pCCBMemberVariableAssigner=NULL, CCBSelectorResolver *pCCBSelectorResolver=NULL, CCNodeLoaderListener *pCCNodeLoaderListener=NULL)
 CCBReader (CCBReader *pCCBReader)
virtual ~CCBReader ()
 CCBReader ()
void setCCBRootPath (const char *pCCBRootPath)
const std::string & getCCBRootPath () const
CCNodereadNodeGraphFromFile (const char *pCCBFileName)
CCNodereadNodeGraphFromFile (const char *pCCBFileName, CCObject *pOwner)
CCNodereadNodeGraphFromFile (const char *pCCBFileName, CCObject *pOwner, const CCSize &parentSize)
CCNodereadNodeGraphFromData (CCData *pData, CCObject *pOwner, const CCSize &parentSize)
CCScenecreateSceneWithNodeGraphFromFile (const char *pCCBFileName)
CCScenecreateSceneWithNodeGraphFromFile (const char *pCCBFileName, CCObject *pOwner)
CCScenecreateSceneWithNodeGraphFromFile (const char *pCCBFileName, CCObject *pOwner, const CCSize &parentSize)
CCBMemberVariableAssignergetCCBMemberVariableAssigner ()
CCBSelectorResolvergetCCBSelectorResolver ()
CCBAnimationManagergetAnimationManager ()
void setAnimationManager (CCBAnimationManager *pAnimationManager)
std::set< std::string > * getAnimatedProperties ()
 Used in CCNodeLoader::parseProperties() More...
 
std::set< std::string > & getLoadedSpriteSheet ()
CCObjectgetOwner ()
int readInt (bool pSigned)
 Parse methods. More...
 
unsigned char readByte ()
bool readBool ()
std::string readUTF8 ()
float readFloat ()
std::string readCachedString ()
bool isJSControlled ()
bool readCallbackKeyframesForSeq (CCBSequence *seq)
bool readSoundKeyframesForSeq (CCBSequence *seq)
CCArraygetOwnerCallbackNames ()
CCArraygetOwnerCallbackNodes ()
CCArraygetOwnerCallbackControlEvents ()
CCArraygetOwnerOutletNames ()
CCArraygetOwnerOutletNodes ()
CCArraygetNodesWithAnimationManagers ()
CCArraygetAnimationManagersForNodes ()
CCDictionarygetAnimationManagers ()
void setAnimationManagers (CCDictionary *x)
void addOwnerCallbackName (const std::string &name)
void addOwnerCallbackNode (CCNode *node)
void addOwnerCallbackControlEvents (CCControlEvent type)
void addDocumentCallbackName (const std::string &name)
void addDocumentCallbackNode (CCNode *node)
void addDocumentCallbackControlEvents (CCControlEvent eventType)
CCNodereadFileWithCleanUp (bool bCleanUp, CCDictionary *am)
void addOwnerOutletName (std::string name)
void addOwnerOutletNode (CCNode *node)
- 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 std::string lastPathComponent (const char *pString)
 Utility methods. More...
 
static std::string deletePathExtension (const char *pString)
static std::string toLowerCase (const char *pCCString)
static bool endsWith (const char *pString, const char *pEnding)
static float getResolutionScale ()
static void setResolutionScale (float scale)

Public Attributes

bool jsControlled
- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Friends

class CCNodeLoader

Additional Inherited Members

- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Detailed Description

@

Constructor & Destructor Documentation

CCBReader ( CCNodeLoaderLibrary pCCNodeLoaderLibrary,
CCBMemberVariableAssigner pCCBMemberVariableAssigner = NULL,
CCBSelectorResolver pCCBSelectorResolver = NULL,
CCNodeLoaderListener pCCNodeLoaderListener = NULL 
)
CCBReader ( CCBReader pCCBReader)
virtual ~CCBReader ( )
virtual
CCBReader ( )

Member Function Documentation

void
addDocumentCallbackControlEvents
( CCControlEvent  eventType)
void addDocumentCallbackName ( const std::string &  name)
void addDocumentCallbackNode ( CCNode node)
void addOwnerCallbackControlEvents ( CCControlEvent  type)
void addOwnerCallbackName ( const std::string &  name)
void addOwnerCallbackNode ( CCNode node)
void addOwnerOutletName ( std::string  name)
void addOwnerOutletNode ( CCNode node)
CCScene*
createSceneWithNodeGraphFromFile
( const char *  pCCBFileName)
CCScene*
createSceneWithNodeGraphFromFile
( const char *  pCCBFileName,
CCObject pOwner 
)
CCScene*
createSceneWithNodeGraphFromFile
( const char *  pCCBFileName,
CCObject pOwner,
const CCSize parentSize 
)
static std::string
deletePathExtension
( const char *  pString)
static
static bool endsWith ( const char *  pString,
const char *  pEnding 
)
static
std::set<std::string>
* getAnimatedProperties
( )
CCBAnimationManager*
getAnimationManager
( )
CCDictionary* getAnimationManagers ( )
CCArray*
getAnimationManagersForNodes
( )
CCBMemberVariableAssigner*
getCCBMemberVariableAssigner
( )
const std::string& getCCBRootPath ( ) const
CCBSelectorResolver*
getCCBSelectorResolver
( )
std::set<std::string>
& getLoadedSpriteSheet
( )
CCArray*
getNodesWithAnimationManagers
( )
CCObject* getOwner ( )
CCArray*
getOwnerCallbackControlEvents
( )
CCArray* getOwnerCallbackNames ( )
CCArray* getOwnerCallbackNodes ( )
CCArray* getOwnerOutletNames ( )
CCArray* getOwnerOutletNodes ( )
static float getResolutionScale ( )
static
bool isJSControlled ( )
static std::string
lastPathComponent
( const char *  pString)
static

Utility methods.

bool readBool ( )
unsigned char readByte ( )
std::string readCachedString ( )
bool readCallbackKeyframesForSeq ( CCBSequence seq)
CCNode* readFileWithCleanUp ( bool  bCleanUp,
CCDictionary am 
)
float readFloat ( )
int readInt ( bool  pSigned)

Parse methods.

CCNode* readNodeGraphFromData ( CCData pData,
CCObject pOwner,
const CCSize parentSize 
)
CCNode* readNodeGraphFromFile ( const char *  pCCBFileName)
CCNode* readNodeGraphFromFile ( const char *  pCCBFileName,
CCObject pOwner 
)
CCNode* readNodeGraphFromFile ( const char *  pCCBFileName,
CCObject pOwner,
const CCSize parentSize 
)
bool readSoundKeyframesForSeq ( CCBSequence seq)
std::string readUTF8 ( )
void setAnimationManager ( CCBAnimationManager pAnimationManager)
void setAnimationManagers ( CCDictionary x)
void setCCBRootPath ( const char *  pCCBRootPath)
static void setResolutionScale ( float  scale)
static
static std::string toLowerCase ( const char *  pCCString)
static

Friends And Related Function Documentation

friend class CCNodeLoader
friend

Member Data Documentation

bool jsControlled

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