mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-24 13:23:50 -04:00
Finale
This commit is contained in:
parent
4a0a7e8495
commit
621924191c
36 changed files with 53 additions and 5 deletions
loader/include/Geode/cocos
particle_nodes
platform
robtop
content
keyboard_dispatcher
mouse_dispatcher
sprite_nodes
xml
script_support
shaders
sprite_nodes
support
text_input_node
textures
tilemap_parallax_nodes
touch_dispatcher
|
@ -68,6 +68,7 @@ class CC_DLL CCParticleBatchNode : public CCNode, public CCTextureProtocol
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCParticleBatchNode, CCNode)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -16,6 +16,7 @@ private:
|
|||
|
||||
CCDevice();
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCDevice)
|
||||
/**
|
||||
* Gets the DPI of device
|
||||
* @return The DPI of device.
|
||||
|
|
|
@ -59,6 +59,7 @@ class CC_DLL CCSAXParser
|
|||
CCSAXDelegator* m_pDelegator;
|
||||
public:
|
||||
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCSAXParser)
|
||||
CCSAXParser();
|
||||
~CCSAXParser(void);
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ class CC_DLL CCThread
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCThread)
|
||||
CCThread() : m_pAutoreasePool(0) {}
|
||||
~CCThread();
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ class CC_DLL CCAccelerometer
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCAccelerometer)
|
||||
CCAccelerometer();
|
||||
~CCAccelerometer();
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ class CC_DLL CCAccelerometer
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCAccelerometer)
|
||||
CCAccelerometer();
|
||||
~CCAccelerometer();
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ class CC_DLL CCAccelerometer
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCAccelerometer)
|
||||
CCAccelerometer() {}
|
||||
~CCAccelerometer() {}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ class CC_DLL CCAccelerometer
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCAccelerometer)
|
||||
CCAccelerometer();
|
||||
~CCAccelerometer();
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ class CC_DLL CCFileUtilsWin32 : public CCFileUtils
|
|||
friend class CCFileUtils;
|
||||
CCFileUtilsWin32();
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCFileUtilsWin32, CCFileUtils)
|
||||
/* override funtions */
|
||||
bool init();
|
||||
virtual void addSearchPath(const char* path);
|
||||
|
|
|
@ -12,7 +12,7 @@ class CC_DLL CCContentManager : public cocos2d::CCObject
|
|||
{
|
||||
public:
|
||||
static CCContentManager* sharedManager();
|
||||
CCContentManager();
|
||||
CCContentManager() {}
|
||||
bool init();
|
||||
|
||||
cocos2d::CCDictionary* addDict(const char* dict, bool unk);
|
||||
|
|
|
@ -11,6 +11,7 @@ NS_CC_BEGIN
|
|||
class CC_DLL CCKeyboardDispatcher : public CCObject
|
||||
{
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCKeyboardDispatcher, CCObject)
|
||||
CCKeyboardDispatcher();
|
||||
virtual ~CCKeyboardDispatcher();
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ class CC_DLL CCMouseDispatcher : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCMouseDispatcher, CCObject)
|
||||
CCMouseDispatcher();
|
||||
virtual ~CCMouseDispatcher();
|
||||
|
||||
|
|
|
@ -9,7 +9,15 @@ NS_CC_BEGIN
|
|||
// @note RobTop Addition
|
||||
class CC_DLL CCFontSprite : public CCSpriteExtra {
|
||||
public:
|
||||
CCFontSprite() {}
|
||||
CCFontSprite()
|
||||
: m_bUseInstant(false)
|
||||
, m_fInstantTime(0.0f)
|
||||
, m_fDelay(0.0f)
|
||||
, m_fShakesPerSecond(0.0f)
|
||||
, m_fShakeIntensity(0.0f)
|
||||
, m_fShakeElapsed(0.0f)
|
||||
, m_nShakeIndex(0)
|
||||
{}
|
||||
virtual ~CCFontSprite() {}
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCFontSprite, CCSpriteExtra);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ NS_CC_BEGIN
|
|||
// @note RobTop Addition
|
||||
class CC_DLL CCSpriteExtra : public CCSprite {
|
||||
public:
|
||||
CCSpriteExtra() {}
|
||||
CCSpriteExtra() : m_fXOffset(0.0f), m_fYOffset(0.0f) {}
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCSpriteExtra, CCSprite);
|
||||
|
||||
inline float getXOffset() const { return m_fXOffset; }
|
||||
|
|
|
@ -12,9 +12,9 @@ public:
|
|||
// @note RobTop Addition
|
||||
class CC_DLL ObjectDecoder : public cocos2d::CCNode {
|
||||
public:
|
||||
ObjectDecoder();
|
||||
ObjectDecoder() : m_delegate(nullptr) {}
|
||||
~ObjectDecoder() {}
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(ObjectDecoder)
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(ObjectDecoder, cocos2d::CCNode);
|
||||
|
||||
static ObjectDecoder* sharedDecoder();
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@ class CC_DLL CCScriptEngineManager
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCScriptEngineManager)
|
||||
~CCScriptEngineManager(void);
|
||||
|
||||
CCScriptEngineProtocol* getScriptEngine(void) {
|
||||
|
|
|
@ -46,6 +46,7 @@ class CC_DLL CCShaderCache : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCShaderCache, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -56,6 +56,7 @@ class CC_DLL CCAnimationFrame : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCAnimationFrame, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
@ -98,6 +99,7 @@ class CC_DLL CCAnimation : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCAnimation, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -51,6 +51,7 @@ class CC_DLL CCAnimationCache : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCAnimationCache, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -67,6 +67,8 @@ protected:
|
|||
*/
|
||||
CCSpriteFrameCache(void) : m_pSpriteFrames(NULL), m_pSpriteFramesAliases(NULL){}
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCSpriteFrameCache, CCObject)
|
||||
|
||||
bool init(void);
|
||||
/**
|
||||
* @js NA
|
||||
|
|
|
@ -36,6 +36,8 @@ class CC_DLL CCNotificationCenter : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCNotificationCenter, CCObject)
|
||||
|
||||
/** CCNotificationCenter constructor */
|
||||
CCNotificationCenter();
|
||||
|
||||
|
@ -123,6 +125,8 @@ class CC_DLL CCNotificationObserver : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCNotificationObserver, CCObject)
|
||||
|
||||
/** @brief CCNotificationObserver constructor
|
||||
* @param target The target which wants to observer notification events.
|
||||
* @param selector The callback function which will be invoked when the specified notification event was posted.
|
||||
|
|
|
@ -52,6 +52,7 @@ class CC_DLL CCProfiler : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCProfiler, CCObject)
|
||||
~CCProfiler(void);
|
||||
/** display the timers */
|
||||
void displayTimers(void);
|
||||
|
@ -76,6 +77,7 @@ public:
|
|||
class CCProfilingTimer : public CCObject
|
||||
{
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCProfilingTimer, CCObject)
|
||||
CCProfilingTimer();
|
||||
~CCProfilingTimer();
|
||||
bool initWithName(const char* timerName);
|
||||
|
|
|
@ -38,6 +38,7 @@ protected:
|
|||
|
||||
CCComponent(void);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCComponent, CCObject)
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
|
@ -44,6 +44,7 @@ protected:
|
|||
CCComponentContainer(CCNode *pNode);
|
||||
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCComponentContainer)
|
||||
virtual ~CCComponentContainer(void);
|
||||
virtual CCComponent* get(const char *pName) const;
|
||||
virtual bool add(CCComponent *pCom);
|
||||
|
|
|
@ -46,6 +46,7 @@ class CC_DLL CCUserDefault
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCUserDefault)
|
||||
~CCUserDefault();
|
||||
|
||||
// get value methods
|
||||
|
|
|
@ -43,6 +43,7 @@ class CC_DLL CCIMEDispatcher
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCIMEDispatcher)
|
||||
~CCIMEDispatcher();
|
||||
|
||||
/**
|
||||
|
|
|
@ -67,6 +67,7 @@ private:
|
|||
/// todo: void addImageWithAsyncObject(CCAsyncObject* async);
|
||||
void addImageAsyncCallBack(float dt);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTextureCache, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua NA
|
||||
|
|
|
@ -38,6 +38,7 @@ class CC_DLL CCTextureETC : public CCObject
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTextureETC, CCObject)
|
||||
CCTextureETC();
|
||||
virtual ~CCTextureETC();
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ enum {
|
|||
class CCTexturePVR : public CCObject
|
||||
{
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTexturePVR, CCObject)
|
||||
CCTexturePVR();
|
||||
virtual ~CCTexturePVR();
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ class CC_DLL CCParallaxNode : public CCNode
|
|||
CC_SYNTHESIZE(struct _ccArray *, m_pParallaxArray, ParallaxArray)
|
||||
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCParallaxNode, CCNode)
|
||||
/** Adds a child to the container with a z-order, a parallax ratio and a position offset
|
||||
It returns self, so you can chain several addChilds.
|
||||
@since v0.8
|
||||
|
|
|
@ -87,6 +87,7 @@ class CC_DLL CCTMXLayer : public CCSpriteBatchNode
|
|||
/** properties from the layer. They can be added using Tiled */
|
||||
CC_PROPERTY(CCDictionary*, m_pProperties, Properties);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTMXLayer, CCSpriteBatchNode)
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua NA
|
||||
|
|
|
@ -52,6 +52,7 @@ class CC_DLL CCTMXObjectGroup : public CCObject
|
|||
/** array of the objects */
|
||||
CC_PROPERTY(CCArray*, m_pObjects, Objects);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTMXObjectGroup, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -120,6 +120,7 @@ class CC_DLL CCTMXTiledMap : public CCNode
|
|||
/** properties */
|
||||
CC_PROPERTY(CCDictionary*, m_pProperties, Properties);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTMXTiledMap, CCNode)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -101,6 +101,7 @@ public:
|
|||
unsigned int m_uMaxGID;
|
||||
CCPoint m_tOffset;
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTMXLayerInfo, CCObject)
|
||||
CCTMXLayerInfo();
|
||||
virtual ~CCTMXLayerInfo();
|
||||
};
|
||||
|
@ -129,6 +130,7 @@ public:
|
|||
//! size in pixels of the image
|
||||
CCSize m_tImageSize;
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTMXTilesetInfo, CCObject)
|
||||
CCTMXTilesetInfo();
|
||||
virtual ~CCTMXTilesetInfo();
|
||||
CCRect rectForGID(unsigned int gid);
|
||||
|
@ -174,6 +176,7 @@ public:
|
|||
/// properties
|
||||
CC_PROPERTY(CCDictionary*, m_pProperties, Properties);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTMXMapInfo, CCObject)
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua NA
|
||||
|
|
|
@ -60,6 +60,7 @@ class CC_DLL CCTileMapAtlas : public CCAtlasNode
|
|||
/** TileMap info */
|
||||
CC_PROPERTY(struct sImageTGA*, m_pTGAInfo, TGAInfo);
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTileMapAtlas, CCAtlasNode)
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
|
|
|
@ -118,6 +118,7 @@ class CC_DLL CCTouchDispatcher : public CCObject, public EGLTouchDelegate
|
|||
{
|
||||
GEODE_FRIEND_MODIFY
|
||||
public:
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCTouchDispatcher, CCObject)
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue