axmol/samples/Cpp/TestCpp/Classes/ActionsEaseTest/ActionsEaseTest.h

135 lines
2.2 KiB
C
Raw Normal View History

#ifndef _ACTIONS__EASE_TEST_H_
#define _ACTIONS__EASE_TEST_H_
////----#include "cocos2d.h"
#include "../testBasic.h"
#include "../BaseTest.h"
USING_NS_CC;
class EaseSpriteDemo : public BaseTest
2010-08-25 17:02:58 +08:00
{
protected:
Sprite* _grossini;
Sprite* _tamara;
Sprite* _kathia;
std::string _title;
public:
EaseSpriteDemo(void);
~EaseSpriteDemo(void);
virtual std::string title();
virtual void onEnter();
void restartCallback(Object* pSender);
void nextCallback(Object* pSender);
void backCallback(Object* pSender);
void positionForTwo();
2010-08-25 17:02:58 +08:00
};
class SpriteEase : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
2012-06-12 01:43:07 +08:00
void testStopAction(float dt);
2010-08-25 17:02:58 +08:00
};
class SpriteEaseInOut : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseExponential : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseExponentialInOut : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseSine : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseSineInOut : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseElastic : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseElasticInOut : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseBounce : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseBounceInOut : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseBack : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpriteEaseBackInOut : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
};
class SpeedTest : public EaseSpriteDemo
{
public:
void onEnter();
virtual std::string title();
2010-08-25 17:02:58 +08:00
2012-06-12 01:43:07 +08:00
void altertime(float dt);
2010-08-25 17:02:58 +08:00
};
class ActionsEaseTestScene : public TestScene
2010-08-25 17:02:58 +08:00
{
public:
virtual void runThisTest();
};
#endif