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:
|
|
|
|
bool m_bControlMenuVisible;
|
|
|
|
int m_nMaxCases;
|
|
|
|
int m_nCurCase;
|
|
|
|
};
|
|
|
|
|
|
|
|
class PerformanceTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|