Index: nacltoons/bindings/extensions.pkg |
diff --git a/nacltoons/bindings/extensions.pkg b/nacltoons/bindings/extensions.pkg |
index 188ad7514c0eb9f1de376375ae1327dfdcdd2186..acf46f112f49467cb578fd775201e731bfbf5ef2 100644 |
--- a/nacltoons/bindings/extensions.pkg |
+++ b/nacltoons/bindings/extensions.pkg |
@@ -1,8 +1,33 @@ |
$#include "LuaCocos2dExtensions.h" |
$#include "physics_nodes/CCPhysicsSprite.h" |
+$#include "physics_nodes/CCPhysicsNode.h" |
$#include "tolua_fix.h" |
$USING_NS_CC; |
$USING_NS_CC_EXT; |
-$pfile "CCPhysicsSprite.pkg" |
+class CCPhysicsNode : public CCNode |
+{ |
+ b2Body* getB2Body() const; |
+ void setB2Body(b2Body *pBody); |
+ float getPTMRatio() const; |
+ void setPTMRatio(float fPTMRatio); |
+ |
+ static CCPhysicsNode* create(); |
+}; |
+ |
+class CCPhysicsSprite : public CCSprite |
+{ |
+ b2Body* getB2Body() const; |
+ void setB2Body(b2Body *pBody); |
+ float getPTMRatio() const; |
+ void setPTMRatio(float fPTMRatio); |
+ |
+ static CCPhysicsSprite* createWithTexture(CCTexture2D *pTexture); |
+ static CCPhysicsSprite* createWithTexture(CCTexture2D *pTexture, CCRect rect); |
+ static CCPhysicsSprite* createWithSpriteFrame(CCSpriteFrame *pSpriteFrame); |
+ static CCPhysicsSprite* createWithSpriteFrameName(const char *pszSpriteFrameName); |
+ static CCPhysicsSprite* create(const char *pszFileName, CCRect rect); |
+ static CCPhysicsSprite* create(const char *pszFileName); |
+ static CCPhysicsSprite* create(); |
+}; |