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 } |
Public Member Functions | |
CCBReader (NodeLoaderLibrary *pNodeLoaderLibrary, CCBMemberVariableAssigner *pCCBMemberVariableAssigner=NULL, CCBSelectorResolver *pCCBSelectorResolver=NULL, NodeLoaderListener *pNodeLoaderListener=NULL) | |
CCBReader (CCBReader *ccbReader) | |
virtual | ~CCBReader () |
CCBReader () | |
void | setCCBRootPath (const char *ccbRootPath) |
local | setCCBRootPath ( local ccbRootPath) |
const std::string & | getCCBRootPath () const |
Node * | readNodeGraphFromFile (const char *pCCBFileName) |
var | readNodeGraphFromFile ( var pCCBFileName) |
local | readNodeGraphFromFile ( local pCCBFileName) |
Node * | readNodeGraphFromFile (const char *pCCBFileName, Object *pOwner) |
Node * | readNodeGraphFromFile (const char *pCCBFileName, Object *pOwner, const Size &parentSize) |
Node * | readNodeGraphFromData (Data *pData, Object *pOwner, const Size &parentSize) |
Scene * | createSceneWithNodeGraphFromFile (const char *pCCBFileName) |
Scene * | createSceneWithNodeGraphFromFile (const char *pCCBFileName, Object *pOwner) |
var | createSceneWithNodeGraphFromFile ( var pCCBFileName, var pOwner) |
Scene * | createSceneWithNodeGraphFromFile (const char *pCCBFileName, Object *pOwner, const Size &parentSize) |
CCBMemberVariableAssigner * | getCCBMemberVariableAssigner () |
CCBSelectorResolver * | getCCBSelectorResolver () |
CCBAnimationManager * | getAnimationManager () |
var | getActionManager () |
local | getActionManager () |
void | setAnimationManager (CCBAnimationManager *pAnimationManager) |
std::set< std::string > * | getAnimatedProperties () |
Used in NodeLoader::parseProperties() More... | |
std::set< std::string > & | getLoadedSpriteSheet () |
Object * | getOwner () |
int | readInt (bool pSigned) |
unsigned char | readByte () |
bool | readBool () |
std::string | readUTF8 () |
local | readUTF8 () |
float | readFloat () |
std::string | readCachedString () |
bool | isJSControlled () |
bool | readCallbackKeyframesForSeq (CCBSequence *seq) |
bool | readSoundKeyframesForSeq (CCBSequence *seq) |
Array * | getOwnerCallbackNames () |
Array * | getOwnerCallbackNodes () |
Array * | getOwnerCallbackControlEvents () |
Array * | getOwnerOutletNames () |
Array * | getOwnerOutletNodes () |
Array * | getNodesWithAnimationManagers () |
Array * | getAnimationManagersForNodes () |
Dictionary * | getAnimationManagers () |
void | setAnimationManagers (Dictionary *x) |
void | addOwnerCallbackName (const std::string &name) |
void | addOwnerCallbackNode (Node *node) |
void | addOwnerCallbackControlEvents (Control::EventType type) |
void | addDocumentCallbackName (const std::string &name) |
void | addDocumentCallbackNode (Node *node) |
void | addDocumentCallbackControlEvents (Control::EventType eventType) |
Node * | readFileWithCleanUp (bool bCleanUp, Dictionary *am) |
void | addOwnerOutletName (std::string name) |
void | addOwnerOutletNode (Node *node) |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
void | release () |
Release the ownership immediately. More... | |
void | retain () |
Retains the ownership. More... | |
Object * | autorelease () |
Release the ownership sometime soon automatically. More... | |
bool | isSingleReference () const |
Returns a boolean value that indicates whether there is only one reference to the object. More... | |
unsigned int | retainCount () const |
Returns the object's current reference count. More... | |
virtual bool | isEqual (const Object *object) |
Returns a boolean value that indicates whether this object and a given object are equal. More... | |
virtual void | acceptVisitor (DataVisitor &visitor) |
virtual void | update (float dt) |
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) |
var | setResolutionScale ( var scale) |
local | setResolutionScale ( local scale) |
Friends | |
class | NodeLoader |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID More... | |
int | _luaID |
Lua reference id. More... | |
![]() | |
unsigned int | _reference |
count of references More... | |
var | _reference |
count of references More... | |
local | _reference |
count of references More... | |
unsigned int | _autoReleaseCount |
count of autorelease More... | |
var | _autoReleaseCount |
count of autorelease More... | |
local | _autoReleaseCount |
count of autorelease More... | |
Parse CCBI file which is generated by CocosBuilder.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
CCBReader | ( | NodeLoaderLibrary * | pNodeLoaderLibrary, |
CCBMemberVariableAssigner * | pCCBMemberVariableAssigner = NULL , |
||
CCBSelectorResolver * | pCCBSelectorResolver = NULL , |
||
NodeLoaderListener * | pNodeLoaderListener = NULL |
||
) |
|
virtual |
CCBReader | ( | ) |
void addDocumentCallbackControlEvents |
( | Control::EventType | eventType) |
var addDocumentCallbackControlEvents |
( | var | eventType) |
local addDocumentCallbackControlEvents |
( | local | eventType) |
void addDocumentCallbackName | ( | const std::string & | name) |
void addDocumentCallbackNode | ( | Node * | node) |
void addOwnerCallbackControlEvents | ( | Control::EventType | type) |
var addOwnerCallbackControlEvents | ( | var | type) |
local addOwnerCallbackControlEvents | ( | local | type) |
void addOwnerCallbackName | ( | const std::string & | name) |
void addOwnerCallbackNode | ( | Node * | node) |
void addOwnerOutletName | ( | std::string | name) |
var addOwnerOutletName | ( | var | name) |
local addOwnerOutletName | ( | local | name) |
void addOwnerOutletNode | ( | Node * | node) |
var addOwnerOutletNode | ( | var | node) |
local addOwnerOutletNode | ( | local | node) |
Scene* createSceneWithNodeGraphFromFile |
( | const char * | pCCBFileName) |
var createSceneWithNodeGraphFromFile |
( | var | pCCBFileName) |
var createSceneWithNodeGraphFromFile |
( | var | pCCBFileName, |
var | pOwner | ||
) |
Scene* createSceneWithNodeGraphFromFile |
( | const char * | pCCBFileName, |
Object * | pOwner, | ||
const Size & | parentSize | ||
) |
var createSceneWithNodeGraphFromFile |
( | var | pCCBFileName, |
var | pOwner, | ||
var | parentSize | ||
) |
|
static |
|
static |
std::set<std::string> * getAnimatedProperties |
( | ) |
Used in NodeLoader::parseProperties()
CCBAnimationManager* getAnimationManager |
( | ) |
var getActionManager | ( | ) |
local getActionManager | ( | ) |
Dictionary* getAnimationManagers | ( | ) |
Array* getAnimationManagersForNodes | ( | ) |
var getAnimationManagersForNodes | ( | ) |
local getAnimationManagersForNodes | ( | ) |
CCBMemberVariableAssigner* getCCBMemberVariableAssigner |
( | ) |
const std::string& getCCBRootPath | ( | ) | const |
var getCCBRootPath | ( | ) |
local getCCBRootPath | ( | ) |
CCBSelectorResolver* getCCBSelectorResolver |
( | ) |
std::set<std::string> & getLoadedSpriteSheet |
( | ) |
Array* getNodesWithAnimationManagers |
( | ) |
var getNodesWithAnimationManagers | ( | ) |
local getNodesWithAnimationManagers | ( | ) |
Object* getOwner | ( | ) |
Array* getOwnerCallbackControlEvents |
( | ) |
var getOwnerCallbackControlEvents | ( | ) |
local getOwnerCallbackControlEvents | ( | ) |
Array* getOwnerCallbackNames | ( | ) |
var getOwnerCallbackNames | ( | ) |
local getOwnerCallbackNames | ( | ) |
Array* getOwnerCallbackNodes | ( | ) |
var getOwnerCallbackNodes | ( | ) |
local getOwnerCallbackNodes | ( | ) |
Array* getOwnerOutletNames | ( | ) |
var getOwnerOutletNames | ( | ) |
local getOwnerOutletNames | ( | ) |
Array* getOwnerOutletNodes | ( | ) |
var getOwnerOutletNodes | ( | ) |
local getOwnerOutletNodes | ( | ) |
|
static |
bool isJSControlled | ( | ) |
|
static |
|
static |
|
static |
bool readBool | ( | ) |
unsigned char readByte | ( | ) |
std::string readCachedString | ( | ) |
bool readCallbackKeyframesForSeq | ( | CCBSequence * | seq) |
var readCallbackKeyframesForSeq | ( | var | seq) |
local readCallbackKeyframesForSeq | ( | local | seq) |
Node* readFileWithCleanUp | ( | bool | bCleanUp, |
Dictionary * | am | ||
) |
float readFloat | ( | ) |
int readInt | ( | bool | pSigned) |
var readInt | ( | var | pSigned) |
local readInt | ( | local | pSigned) |
Node* readNodeGraphFromFile | ( | const char * | pCCBFileName) |
var readNodeGraphFromFile | ( | var | pCCBFileName) |
local readNodeGraphFromFile | ( | local | pCCBFileName) |
var readNodeGraphFromFile | ( | var | pCCBFileName, |
var | pOwner | ||
) |
local readNodeGraphFromFile | ( | local | pCCBFileName, |
local | pOwner | ||
) |
var readNodeGraphFromFile | ( | var | pCCBFileName, |
var | pOwner, | ||
var | parentSize | ||
) |
local readNodeGraphFromFile | ( | local | pCCBFileName, |
local | pOwner, | ||
local | parentSize | ||
) |
bool readSoundKeyframesForSeq | ( | CCBSequence * | seq) |
var readSoundKeyframesForSeq | ( | var | seq) |
local readSoundKeyframesForSeq | ( | local | seq) |
std::string readUTF8 | ( | ) |
var readUTF8 | ( | ) |
local readUTF8 | ( | ) |
void setAnimationManager | ( | CCBAnimationManager * | pAnimationManager) |
var setActionManager | ( | var | pAnimationManager) |
local setActionManager | ( | local | pAnimationManager) |
void setAnimationManagers | ( | Dictionary * | x) |
void setCCBRootPath | ( | const char * | ccbRootPath) |
var setCCBRootPath | ( | var | ccbRootPath) |
local setCCBRootPath | ( | local | ccbRootPath) |
|
static |
|
static |
|
static |
|
static |
|
friend |