2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __PERFORMANCE_TEST_H__
|
|
|
|
#define __PERFORMANCE_TEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
|
|
|
class PerformanceMainLayer : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
};
|
|
|
|
|
|
|
|
class PerformBasicLayer : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PerformBasicLayer(bool bControlMenuVisible, int nMaxCases = 0, int nCurCase = 0);
|
|
|
|
|
|
|
|
virtual void onEnter();
|
|
|
|
|
2011-03-25 13:59:08 +08:00
|
|
|
virtual void restartCallback(CCObject* pSender);
|
|
|
|
virtual void nextCallback(CCObject* pSender);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void backCallback(CCObject* pSender);
|
|
|
|
virtual void showCurrentTest() = 0;
|
|
|
|
|
|
|
|
virtual void toMainLayer(CCObject* pSender);
|
|
|
|
|
|
|
|
protected:
|
2013-06-15 14:03:30 +08:00
|
|
|
bool _controlMenuVisible;
|
|
|
|
int _maxCases;
|
|
|
|
int _curCase;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class PerformanceTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|