2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __COCOS_DENSHION_TEST__
|
|
|
|
#define __COCOS_DENSHION_TEST__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class CocosDenshionTest : public Layer
|
2011-01-19 16:00:19 +08:00
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
CocosDenshionTest(void);
|
|
|
|
~CocosDenshionTest(void);
|
2011-01-19 16:00:19 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
void menuCallback(Object * pSender);
|
|
|
|
virtual void ccTouchesMoved(Set *pTouches, Event *pEvent);
|
|
|
|
virtual void ccTouchesBegan(Set *pTouches, Event *pEvent);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onExit();
|
2011-01-19 16:00:19 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
Menu* _itmeMenu;
|
|
|
|
Point _beginPos;
|
2013-06-15 14:03:30 +08:00
|
|
|
int _testCount;
|
|
|
|
unsigned int _soundId;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
2011-01-19 16:00:19 +08:00
|
|
|
class CocosDenshionTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__COCOS_DENSHION_TEST__
|