2010-09-06 17:14:41 +08:00
|
|
|
#ifndef _INTERVAL_TEST_H_
|
|
|
|
#define _INTERVAL_TEST_H_
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class IntervalLayer : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
protected:
|
2014-03-28 10:28:44 +08:00
|
|
|
Label* _label0;
|
|
|
|
Label* _label1;
|
|
|
|
Label* _label2;
|
|
|
|
Label* _label3;
|
|
|
|
Label* _label4;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-06-15 14:03:30 +08:00
|
|
|
float _time0, _time1, _time2, _time3, _time4;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
IntervalLayer(void);
|
|
|
|
virtual ~IntervalLayer();
|
|
|
|
public:
|
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
void step1(float dt);
|
|
|
|
void step2(float dt);
|
|
|
|
void step3(float dt);
|
|
|
|
void step4(float dt);
|
|
|
|
void update(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
//CREATE_NODE(IntervalLayer);
|
|
|
|
};
|
|
|
|
|
|
|
|
class IntervalTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|