2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _TEST_BASIC_H_
|
|
|
|
#define _TEST_BASIC_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2014-07-29 18:08:40 +08:00
|
|
|
#include "audio/include/SimpleAudioEngine.h"
|
2012-10-23 17:48:50 +08:00
|
|
|
#include "VisibleRect.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2015-04-03 11:54:39 +08:00
|
|
|
/**
|
|
|
|
* TestScene is retained for compatibility with older versions.
|
|
|
|
* @warning It should soon be removed.
|
|
|
|
*/
|
2015-04-09 08:37:30 +08:00
|
|
|
class TestScene : public cocos2d::Scene
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-04-03 11:54:39 +08:00
|
|
|
TestScene(bool bPortrait = false, bool physics = false){}
|
|
|
|
virtual void onEnter() override {}
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
virtual void runThisTest() = 0;
|
|
|
|
};
|
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
// C++ 11
|
|
|
|
|
2013-11-14 07:55:36 +08:00
|
|
|
#define CL(__className__) [](){ return __className__::create();}
|
2013-12-30 15:32:04 +08:00
|
|
|
#define CLN(__className__) [](){ auto obj = new __className__(); obj->autorelease(); return obj; }
|
2013-06-07 08:12:28 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
#endif
|