2010-08-23 10:17:29 +08:00
|
|
|
#ifndef _EFFECTS_TEST_H_
|
|
|
|
#define _EFFECTS_TEST_H_
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
DEFINE_TEST_SUITE(EffectTests);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
class EffectBaseTest : public TestCase
|
2010-08-23 10:17:29 +08:00
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
protected:
|
2013-06-15 14:03:30 +08:00
|
|
|
//UxString _title;
|
2015-04-09 08:37:30 +08:00
|
|
|
cocos2d::NodeGrid* _gridNodeTarget;
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
static EffectBaseTest* create(int index)
|
|
|
|
{
|
|
|
|
auto ret = new (std::nothrow) EffectBaseTest(index);
|
|
|
|
if (ret && ret->init())
|
|
|
|
{
|
|
|
|
ret->autorelease();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
delete ret;
|
|
|
|
ret = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
EffectBaseTest(int index);
|
|
|
|
~EffectBaseTest();
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
void checkAnim(float dt);
|
2010-08-23 10:17:29 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|