axmol/tools/tolua++/CCAction.pkg

347 lines
8.2 KiB
Plaintext
Raw Normal View History

2012-02-02 14:26:38 +08:00
enum {
kCCActionTagInvalid = -1,
};
class CCAction : public CCObject
{
bool isDone(void);
CCNode* getTarget(void);
2012-02-02 14:26:38 +08:00
// void setTarget(CCNode *pTarget);
CCNode* getOriginalTarget(void);
2012-02-02 14:26:38 +08:00
// void setOriginalTarget(CCNode *pOriginalTarget);
// static CCAction* create();
int getTag(void);
void setTag(int nTag);
CCObject* copyWithZone(CCZone* pZone);
2012-02-02 14:26:38 +08:00
};
class CCActionInterval : public CCAction
{
float getElapsed(void);
bool isDone(void);
void setAmplitudeRate(float amp);
float getAmplitudeRate(void);
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
CCActionInterval* create(float d);
2012-02-02 14:26:38 +08:00
};
class CCFiniteTimeAction : public CCActionInterval
{
float getDuration(void);
void setDuration(float duration);
CCFiniteTimeAction* reverse(void);
2012-02-02 14:26:38 +08:00
};
// CCActionInterval
class CCSpeed : public CCAction
{
float getSpeed(void);
void setSpeed(float fSpeed);
CCActionInterval* reverse(void);
bool isDone(void);
CCObject* copyWithZone(CCZone* pZone);
2012-02-02 14:26:38 +08:00
static CCSpeed* create(CCActionInterval *pAction, float fRate);
2012-02-02 14:26:38 +08:00
};
class CCFollow : public CCAction
{
bool isBoundarySet(void);
void setBoudarySet(bool bValue);
bool isDone(void);
CCObject* copyWithZone(CCZone* pZone);
2012-02-02 14:26:38 +08:00
static CCFollow* create(CCNode *pFollowedNode);
static CCFollow* create(CCNode *pFollowedNode, CCRect rect);
2012-02-02 14:26:38 +08:00
};
class CCSequence : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCFiniteTimeAction* createWithTwoActions(CCFiniteTimeAction *pActionOne, CCFiniteTimeAction *pActionTwo);
static CCFiniteTimeAction* create(CCArray *actions);
2012-02-02 14:26:38 +08:00
};
class CCRepeat : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
bool isDone(void);
CCActionInterval* reverse(void);
static CCRepeat* create(CCActionInterval *pAction, unsigned int times);
2012-02-02 14:26:38 +08:00
};
class CCRepeatForever : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
bool isDone(void);
CCActionInterval* reverse(void);
static CCRepeatForever* create(CCActionInterval *pAction);
2012-02-02 14:26:38 +08:00
};
class CCSpawn : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCFiniteTimeAction* create(CCArray *actions);
static CCFiniteTimeAction* createWithTwoActions(CCFiniteTimeAction *pAction1, CCFiniteTimeAction *pAction2);
2012-02-02 14:26:38 +08:00
};
class CCRotateTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCRotateTo* create(float duration, float fDeltaAngle);
2012-02-02 14:26:38 +08:00
};
class CCRotateBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCRotateBy* create(float duration, float fDeltaAngle);
2012-02-02 14:26:38 +08:00
};
class CCMoveTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCMoveTo* create(float duration, CCPoint position);
2012-02-02 14:26:38 +08:00
};
class CCMoveBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCMoveBy* create(float duration, CCPoint position);
2012-02-02 14:26:38 +08:00
};
class CCSkewTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCSkewTo* create(float t, float sx, float sy);
2012-02-02 14:26:38 +08:00
};
class CCSkewBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCSkewBy* create(float t, float deltaSkewX, float deltaSkewY);
2012-02-02 14:26:38 +08:00
};
class CCJumpBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCJumpBy* create(float duration, CCPoint position, float height, int jumps);
2012-02-02 14:26:38 +08:00
};
class CCJumpTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCJumpTo* create(float duration, CCPoint position, float height, int jumps);
2012-02-02 14:26:38 +08:00
};
/*
There's a bug in tolua++
Can't use struct in lua after binding struct
So use class instead.
*/
class ccBezierConfig {
ccBezierConfig(void);
2012-02-02 14:26:38 +08:00
CCPoint endPosition;
CCPoint controlPoint_1;
CCPoint controlPoint_2;
};
2012-02-02 14:26:38 +08:00
class CCBezierBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCBezierBy* create(float t, ccBezierConfig c);
2012-02-02 14:26:38 +08:00
};
class CCBezierTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCBezierTo* create(float t, ccBezierConfig c);
2012-02-02 14:26:38 +08:00
};
class CCScaleTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCScaleTo* create(float duration, float s);
static CCScaleTo* create(float duration, float sx, float sy);
2012-02-02 14:26:38 +08:00
};
class CCScaleBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCScaleBy* create(float duration, float s);
static CCScaleBy* create(float duration, float sx, float sy);
2012-02-02 14:26:38 +08:00
};
class CCBlink : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCBlink* create(float duration, unsigned int uBlinks);
2012-02-02 14:26:38 +08:00
};
class CCFadeIn : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCFadeIn* create(float d);
2012-02-02 14:26:38 +08:00
};
class CCFadeOut : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCFadeOut* create(float d);
2012-02-02 14:26:38 +08:00
};
class CCFadeTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCFadeTo* create(float duration, GLubyte opacity);
2012-02-02 14:26:38 +08:00
};
class CCTintTo : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
static CCTintTo* create(float duration, GLubyte red, GLubyte green, GLubyte blue);
2012-02-02 14:26:38 +08:00
};
class CCTintBy : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCTintBy* create(float duration, GLshort deltaRed, GLshort deltaGreen, GLshort deltaBlue);
2012-02-02 14:26:38 +08:00
};
class CCDelayTime : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCDelayTime* create(float d);
2012-02-02 14:26:38 +08:00
};
class CCReverseTime : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
static CCReverseTime* create(CCFiniteTimeAction *pAction);
2012-02-02 14:26:38 +08:00
};
class CCAnimate : public CCActionInterval
{
CCObject* copyWithZone(CCZone* pZone);
CCActionInterval* reverse(void);
2012-02-02 14:26:38 +08:00
CCAnimation* getAnimation(void);
void setAnimation(CCAnimation *pAnimation);
static CCAnimate* create(CCAnimation *pAnimation);
2012-02-02 14:26:38 +08:00
};
class CCTargetedAction : public CCActionInterval
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
CCNode* getForcedTarget(void);
void setForcedTarget(CCNode* target);
2012-02-02 14:26:38 +08:00
static CCTargetedAction* create(CCNode* pTarget, CCFiniteTimeAction* pAction);
2012-02-02 14:26:38 +08:00
};
// CCActionInstant
class CCActionInstant : public CCFiniteTimeAction
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
CCFiniteTimeAction* reverse(void);
bool isDone(void);
2012-02-02 14:26:38 +08:00
};
class CCShow : public CCActionInstant
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
CCFiniteTimeAction* reverse(void);
static CCShow* create();
2012-02-02 14:26:38 +08:00
};
class CCHide : public CCActionInstant
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
CCFiniteTimeAction* reverse(void);
static CCHide* create();
2012-02-02 14:26:38 +08:00
};
class CCToggleVisibility : public CCActionInstant
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
static CCToggleVisibility* create();
2012-02-02 14:26:38 +08:00
};
class CCFlipX : public CCActionInstant
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
CCFiniteTimeAction* reverse(void);
static CCFlipX* create(bool x);
};
class CCFlipY : public CCActionInstant
{
CCObject* copyWithZone(CCZone* pZone);
CCFiniteTimeAction* reverse(void);
static CCFlipY* create(bool y);
2012-02-02 14:26:38 +08:00
};
class CCPlace : public CCActionInstant //<NSCopying>
2012-02-02 14:26:38 +08:00
{
CCObject* copyWithZone(CCZone* pZone);
static CCPlace* create(CCPoint pos);
2012-02-02 14:26:38 +08:00
};
class CCCallFunc : public CCActionInstant
{
static CCCallFunc* create(LUA_FUNCTION funcID);
};
class CCCallFuncN : public CCCallFunc
{
static CCCallFuncN* create(LUA_FUNCTION funcID);
};