mirror of https://github.com/axmolengine/axmol.git
38 lines
644 B
C++
38 lines
644 B
C++
#ifndef _INTERVAL_TEST_H_
|
|
#define _INTERVAL_TEST_H_
|
|
|
|
#include "../testBasic.h"
|
|
|
|
class IntervalLayer : public Layer
|
|
{
|
|
protected:
|
|
Label* _label0;
|
|
Label* _label1;
|
|
Label* _label2;
|
|
Label* _label3;
|
|
Label* _label4;
|
|
|
|
float _time0, _time1, _time2, _time3, _time4;
|
|
|
|
public:
|
|
IntervalLayer(void);
|
|
virtual ~IntervalLayer();
|
|
public:
|
|
|
|
void step1(float dt);
|
|
void step2(float dt);
|
|
void step3(float dt);
|
|
void step4(float dt);
|
|
void update(float dt);
|
|
|
|
//CREATE_NODE(IntervalLayer);
|
|
};
|
|
|
|
class IntervalTestScene : public TestScene
|
|
{
|
|
public:
|
|
virtual void runThisTest();
|
|
};
|
|
|
|
#endif
|