2013-06-03 13:47:12 +08:00
|
|
|
#ifndef __CCBPROXY_H_
|
|
|
|
#define __CCBPROXY_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "CCLuaEngine.h"
|
|
|
|
#include "SimpleAudioEngine.h"
|
|
|
|
#include "cocos-ext.h"
|
|
|
|
|
|
|
|
USING_NS_CC;
|
|
|
|
USING_NS_CC_EXT;
|
|
|
|
|
2013-06-20 14:33:59 +08:00
|
|
|
class CCBProxy : public Layer{
|
2013-06-03 13:47:12 +08:00
|
|
|
public:
|
|
|
|
CCBProxy() { }
|
|
|
|
virtual ~ CCBProxy(){ }
|
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(CCBProxy, create);
|
2013-07-05 10:25:37 +08:00
|
|
|
CCBReader* createCCBReader();
|
2013-06-20 14:33:59 +08:00
|
|
|
Node* readCCBFromFile(const char *pszFileName,CCBReader* pCCBReader,bool bSetOwner = false);
|
|
|
|
const char* getNodeTypeName(Node* pNode);
|
2013-08-22 10:16:57 +08:00
|
|
|
void setCallback(Node* node,int handle, int controlEvents = 0);
|
2013-06-03 13:47:12 +08:00
|
|
|
};
|
|
|
|
|
2013-06-20 14:33:59 +08:00
|
|
|
class CCBLayerLoader:public LayerLoader{
|
2013-06-03 13:47:12 +08:00
|
|
|
public:
|
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCBLayerLoader, loader);
|
|
|
|
};
|
|
|
|
|
2013-06-03 14:59:04 +08:00
|
|
|
#endif // __CCBPROXY_H_
|