axmol/samples/Cpp/TestCpp/Classes/TouchesTest/TouchesTest.h

35 lines
559 B
C
Raw Normal View History

#ifndef _TOUCHES_TEST__H_
#define _TOUCHES_TEST__H_
////----#include "cocos2d.h"
#include "../testBasic.h"
USING_NS_CC;
2010-08-27 11:53:35 +08:00
class PongScene : public TestScene
{
public:
PongScene();
virtual void runThisTest();
virtual void MainMenuCallback(CCObject* pSender);
2010-08-27 11:53:35 +08:00
};
class Ball;
2010-08-27 11:53:35 +08:00
class PongLayer : public CCLayer
{
2012-05-30 16:55:46 +08:00
private:
Ball* m_ball;
CCArray* m_paddles;
2012-05-30 16:55:46 +08:00
CCPoint m_ballStartingVelocity;
2010-08-27 11:53:35 +08:00
public:
PongLayer();
~PongLayer();
void resetAndScoreBallForPlayer(int player);
2012-06-12 01:43:07 +08:00
void doStep(float delta);
};
#endif