2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __PERFORMANCE_TEST_H__
|
|
|
|
#define __PERFORMANCE_TEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class PerformanceMainLayer : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
};
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class PerformBasicLayer : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
PerformBasicLayer(bool bControlMenuVisible, int nMaxCases = 0, int nCurCase = 0);
|
|
|
|
|
2013-09-15 17:49:36 +08:00
|
|
|
virtual void onEnter() override;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
virtual void restartCallback(Object* sender);
|
|
|
|
virtual void nextCallback(Object* sender);
|
|
|
|
virtual void backCallback(Object* sender);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void showCurrentTest() = 0;
|
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
virtual void toMainLayer(Object* sender);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
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
|