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

291 lines
5.1 KiB
C++

#ifndef _TILEMAP_TEST_H_
#define _TILEMAP_TEST_H_
#include "../testBasic.h"
#include "../BaseTest.h"
class TileDemo : public BaseTest
{
public:
TileDemo(void);
virtual ~TileDemo(void);
virtual std::string title();
virtual std::string subtitle();
virtual void onEnter();
void restartCallback(Object* pSender);
void nextCallback(Object* pSender);
void backCallback(Object* pSender);
virtual void ccTouchesMoved(Set *pTouches, Event *pEvent);
};
class TileMapTest : public TileDemo
{
public:
TileMapTest(void);
virtual std::string title();
};
class TileMapEditTest : public TileDemo
{
public:
TileMapEditTest (void);
virtual std::string title();
void updateMap(float dt);
};
class TMXOrthoTest : public TileDemo
{
public:
TMXOrthoTest(void);
virtual std::string title();
virtual void onEnter();
virtual void onExit();
};
class TMXOrthoTest2 : public TileDemo
{
public:
TMXOrthoTest2(void);
virtual std::string title();
};
class TMXOrthoTest3 : public TileDemo
{
public:
TMXOrthoTest3(void);
virtual std::string title();
};
class TMXOrthoTest4 : public TileDemo
{
public:
TMXOrthoTest4(void);
void removeSprite(float dt);
virtual std::string title();
};
class TMXReadWriteTest : public TileDemo
{
unsigned int _gid;
unsigned int _gid2;
public:
TMXReadWriteTest(void);
virtual std::string title();
void removeSprite(Node* sender);
void updateCol(float dt);
void repaintWithGID(float dt);
void removeTiles(float dt);
};
class TMXHexTest : public TileDemo
{
public:
TMXHexTest(void);
virtual std::string title();
};
class TMXIsoTest : public TileDemo
{
public:
TMXIsoTest(void);
virtual std::string title();
};
class TMXIsoTest1 : public TileDemo
{
public:
TMXIsoTest1(void);
virtual std::string title();
};
class TMXIsoTest2 : public TileDemo
{
public:
TMXIsoTest2(void);
virtual std::string title();
};
class TMXUncompressedTest : public TileDemo
{
public:
TMXUncompressedTest(void);
virtual std::string title();
};
class TMXTilesetTest : public TileDemo
{
public:
TMXTilesetTest(void);
virtual std::string title();
};
class TMXOrthoObjectsTest : public TileDemo
{
public:
TMXOrthoObjectsTest(void);
virtual std::string title();
virtual void draw();
virtual std::string subtitle();
};
class TMXIsoObjectsTest : public TileDemo
{
public:
TMXIsoObjectsTest(void);
virtual std::string title();
virtual void draw();
virtual std::string subtitle();
};
class TMXResizeTest : public TileDemo
{
public:
TMXResizeTest(void);
virtual std::string title();
virtual std::string subtitle();
};
class TMXIsoZorder : public TileDemo
{
Sprite* _tamara;
public:
TMXIsoZorder(void);
virtual std::string title();
virtual std::string subtitle();
virtual void onExit(void);
~TMXIsoZorder();
void repositionSprite(float dt);
};
class TMXOrthoZorder : public TileDemo
{
Sprite* _tamara;
public:
TMXOrthoZorder(void);
virtual std::string title();
virtual std::string subtitle();
virtual ~TMXOrthoZorder();
void repositionSprite(float dt);
};
class TMXIsoVertexZ : public TileDemo
{
Sprite* _tamara;
public:
TMXIsoVertexZ(void);
virtual std::string title();
virtual std::string subtitle();
~TMXIsoVertexZ();
void repositionSprite(float dt);
virtual void onEnter();
virtual void onExit();
};
class TMXOrthoVertexZ : public TileDemo
{
Sprite* _tamara;
public:
TMXOrthoVertexZ(void);
virtual std::string title();
virtual std::string subtitle();
~TMXOrthoVertexZ();
void repositionSprite(float dt);
virtual void onEnter();
virtual void onExit();
};
class TMXIsoMoveLayer : public TileDemo
{
public:
TMXIsoMoveLayer(void);
virtual std::string title();
virtual std::string subtitle();
};
class TMXOrthoMoveLayer : public TileDemo
{
public:
TMXOrthoMoveLayer(void);
virtual std::string title();
virtual std::string subtitle();
};
class TMXTilePropertyTest : public TileDemo
{
public:
TMXTilePropertyTest();
virtual std::string title();
virtual std::string subtitle();
};
class TMXOrthoFlipTest : public TileDemo
{
public:
TMXOrthoFlipTest();
virtual std::string title();
};
class TMXOrthoFlipRunTimeTest : public TileDemo
{
public:
TMXOrthoFlipRunTimeTest();
virtual std::string title();
virtual std::string subtitle();
void flipIt(float dt);
};
class TMXOrthoFromXMLTest : public TileDemo
{
public:
TMXOrthoFromXMLTest();
virtual std::string title();
};
class TMXBug987 : public TileDemo
{
public:
TMXBug987();
virtual std::string title();
virtual std::string subtitle();
};
class TMXBug787 : public TileDemo
{
public:
TMXBug787();
virtual std::string title();
virtual std::string subtitle();
};
class TMXGIDObjectsTest : public TileDemo
{
public:
TMXGIDObjectsTest();
virtual std::string title();
virtual std::string subtitle();
virtual void draw();
};
class TileMapTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif