axmol/test_uphone/tests/Box2DTest/Box2dTest.h

33 lines
544 B
C
Raw Normal View History

#ifndef _BOX2D_TEST_H_
#define _BOX2D_TEST_H_
#include "cocos2d.h"
2010-09-24 12:24:38 +08:00
#include "Box2d/Box2d.h"
#include "../testBasic.h"
class Box2DTestLayer : public CCLayer
{
b2World* world;
//GLESDebugDraw *m_debugDraw;
public:
Box2DTestLayer();
~Box2DTestLayer();
virtual void draw();
void addNewSpriteWithCoords(CGPoint p);
void tick(ccTime dt);
virtual void ccTouchesEnded(NSSet* touches, UIEvent* event);
//CREATE_NODE(Box2DTestLayer);
} ;
class Box2DTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif