Parse CCBI file which is generated by CocosBuilder. More...
#include <CCBReader.h>
Public Types | |
enum | PropertyType { POSITION = 0, SIZE, POINT, POINT_LOCK, SCALE_LOCK, DEGREES, INTEGER, FLOAT, FLOAT_VAR, CHECK, SPRITEFRAME, TEXTURE, BYTE, COLOR3, COLOR4F_VAR, FLIP, BLEND_MODE, FNT_FILE, TEXT, FONT_TTF, INTEGER_LABELED, BLOCK, ANIMATION, CCB_FILE, STRING, BLOCK_CONTROL, FLOAT_SCALE, FLOAT_XY } |
enum | FloatType { _0 = 0, _1, MINUS1, _05, INTEGER, FULL } |
enum | PlatformType { ALL = 0, IOS, MAC } |
enum | TargetType { NONE = 0, DOCUMENT_ROOT = 1, OWNER = 2 } |
enum | PositionType { RELATIVE_BOTTOM_LEFT, RELATIVE_TOP_LEFT, RELATIVE_TOP_RIGHT, RELATIVE_BOTTOM_RIGHT, PERCENT, MULTIPLY_RESOLUTION } |
enum | SizeType { ABSOLUTE, PERCENT, RELATIVE_CONTAINER, HORIZONTAL_PERCENT, VERTICAL_PERCENT, MULTIPLY_RESOLUTION } |
enum | ScaleType { ABSOLUTE, MULTIPLY_RESOLUTION } |
typedef cocos2d::Map < cocos2d::Node *, CCBAnimationManager * > | CCBAnimationManagerMap |
typedef std::shared_ptr < CCBAnimationManagerMap > | CCBAnimationManagerMapPtr |
Static Public Member Functions | |
static std::string | lastPathComponent (const char *pString) |
static std::string | deletePathExtension (const char *pString) |
static std::string | toLowerCase (const char *pString) |
static bool | endsWith (const char *pString, const char *pEnding) |
static float | getResolutionScale () |
static void | setResolutionScale (float scale) |
Friends | |
class | NodeLoader |
Additional Inherited Members | |
![]() | |
Ref () | |
Constructor. More... | |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
Parse CCBI file which is generated by CocosBuilder.
typedef std::shared_ptr <CCBAnimationManagerMap> CCBAnimationManagerMapPtr |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
CCBReader | ( | NodeLoaderLibrary * | pNodeLoaderLibrary, |
CCBMemberVariableAssigner * | pCCBMemberVariableAssigner = NULL , |
||
CCBSelectorResolver * | pCCBSelectorResolver = NULL , |
||
NodeLoaderListener * | pNodeLoaderListener = NULL |
||
) |
|
virtual |
CCBReader | ( | ) |
void addDocumentCallbackControlEvents |
( | cocos2d::extension::Control::EventType | eventType) |
void addDocumentCallbackName | ( | const std::string & | name) |
void addDocumentCallbackNode | ( | cocos2d::Node * | node) |
void addOwnerCallbackControlEvents | ( | cocos2d::extension::Control::EventType | type) |
void addOwnerCallbackName | ( | const std::string & | name) |
void addOwnerCallbackNode | ( | cocos2d::Node * | node) |
void addOwnerOutletName | ( | std::string | name) |
void addOwnerOutletNode | ( | cocos2d::Node * | node) |
cocos2d::Scene* createSceneWithNodeGraphFromFile |
( | const char * | pCCBFileName) |
cocos2d::Scene* createSceneWithNodeGraphFromFile |
( | const char * | pCCBFileName, |
cocos2d::Ref * | pOwner | ||
) |
cocos2d::Scene* createSceneWithNodeGraphFromFile |
( | const char * | pCCBFileName, |
cocos2d::Ref * | pOwner, | ||
const cocos2d::Size & | parentSize | ||
) |
|
static |
|
static |
std::set<std::string> * getAnimatedProperties |
( | ) |
Used in NodeLoader::parseProperties()
CCBAnimationManager* getAnimationManager |
( | ) |
CCBAnimationManagerMapPtr getAnimationManagers |
( | ) |
cocos2d::Vector <CCBAnimationManager*> & getAnimationManagersForNodes |
( | ) |
CCBMemberVariableAssigner* getCCBMemberVariableAssigner |
( | ) |
const std::string& getCCBRootPath | ( | ) | const |
CCBSelectorResolver* getCCBSelectorResolver |
( | ) |
std::set<std::string> & getLoadedSpriteSheet |
( | ) |
cocos2d::Vector<cocos2d::Node*> & getNodesWithAnimationManagers |
( | ) |
cocos2d::Ref* getOwner | ( | ) |
cocos2d::ValueVector& getOwnerCallbackControlEvents |
( | ) |
cocos2d::ValueVector getOwnerCallbackNames |
( | ) |
cocos2d::Vector<cocos2d::Node*> & getOwnerCallbackNodes |
( | ) |
cocos2d::ValueVector getOwnerOutletNames |
( | ) |
cocos2d::Vector<cocos2d::Node*> & getOwnerOutletNodes |
( | ) |
|
static |
bool isJSControlled | ( | ) |
|
static |
bool readBool | ( | ) |
unsigned char readByte | ( | ) |
std::string readCachedString | ( | ) |
bool readCallbackKeyframesForSeq | ( | CCBSequence * | seq) |
cocos2d::Node* readFileWithCleanUp | ( | bool | bCleanUp, |
CCBAnimationManagerMapPtr | am | ||
) |
float readFloat | ( | ) |
int readInt | ( | bool | pSigned) |
cocos2d::Node* readNodeGraphFromData |
( | std::shared_ptr< cocos2d::Data > | data, |
cocos2d::Ref * | pOwner, | ||
const cocos2d::Size & | parentSize | ||
) |
cocos2d::Node* readNodeGraphFromFile |
( | const char * | pCCBFileName) |
cocos2d::Node* readNodeGraphFromFile |
( | const char * | pCCBFileName, |
cocos2d::Ref * | pOwner | ||
) |
cocos2d::Node* readNodeGraphFromFile |
( | const char * | pCCBFileName, |
cocos2d::Ref * | pOwner, | ||
const cocos2d::Size & | parentSize | ||
) |
bool readSoundKeyframesForSeq | ( | CCBSequence * | seq) |
std::string readUTF8 | ( | ) |
void setAnimationManager | ( | CCBAnimationManager * | pAnimationManager) |
void setAnimationManagers | ( | CCBAnimationManagerMapPtr | x) |
void setCCBRootPath | ( | const char * | ccbRootPath) |
|
static |
|
static |
|
friend |