2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCGridAction : public CCActionInterval
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
CCObject* copyWithZone(CCZone* pZone);
|
|
|
|
CCActionInterval* reverse(void);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
CCGridBase* getGrid(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCGridAction* create(ccGridSize gridSize, float duration);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCAccelDeccelAmplitude : public CCActionInterval
|
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
CCActionInterval* reverse(void);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
float getRate(void);
|
|
|
|
void setRate(float fRate);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCAccelDeccelAmplitude* create(CCAction *pAction, float duration);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-08-06 16:02:49 +08:00
|
|
|
class CCGrid3DAction : public CCGridAction
|
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
virtual CCGridBase* getGrid(void);
|
|
|
|
ccVertex3F vertex(const ccGridSize& pos);
|
|
|
|
ccVertex3F originalVertex(const ccGridSize& pos);
|
|
|
|
void setVertex(const ccGridSize& pos, const ccVertex3F& vertex);
|
2012-08-06 16:02:49 +08:00
|
|
|
|
2012-08-10 18:14:04 +08:00
|
|
|
//static CCGrid3DAction* create(const ccGridSize& gridSize, float duration);
|
2012-08-06 16:02:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class CCTiledGrid3DAction : public CCGridAction
|
|
|
|
{
|
|
|
|
ccQuad3 tile(ccGridSize pos);
|
|
|
|
ccQuad3 originalTile(ccGridSize pos);
|
|
|
|
void setTile(ccGridSize pos, ccQuad3 coords);
|
|
|
|
CCGridBase* getGrid(void);
|
|
|
|
|
2012-08-10 18:14:04 +08:00
|
|
|
//static CCTiledGrid3DAction* create(ccGridSize gridSize, float duration);
|
2012-08-06 16:02:49 +08:00
|
|
|
};
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCAccelAmplitude : public CCActionInterval
|
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
CCActionInterval* reverse(void);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
float getRate(void);
|
|
|
|
void setRate(float fRate);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCAccelAmplitude* create(CCAction *pAction, float duration);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCDeccelAmplitude : public CCActionInterval
|
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
CCActionInterval* reverse(void);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
float getRate(void);
|
|
|
|
void setRate(float fRate);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCDeccelAmplitude* create(CCAction *pAction, float duration);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCStopGrid : public CCActionInstant
|
|
|
|
{
|
2012-06-20 11:59:35 +08:00
|
|
|
static CCStopGrid* create(void);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCReuseGrid : public CCActionInstant
|
|
|
|
{
|
2012-06-20 11:59:35 +08:00
|
|
|
static CCReuseGrid* create(int times);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|