axmol/tools/tolua++/CCAnimation.pkg

21 lines
679 B
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
class CCAnimation : public CCObject
{
const char* getName(void);
void setName(const char *pszName);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
float getDelay(void);
void setDelay(float fDelay);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
CCMutableArray<CCSpriteFrame*>* getFrames(void);
void setFrames(CCMutableArray<CCSpriteFrame*> *pFrames);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void addFrame(CCSpriteFrame *pFrame);
void addFrameWithFileName(const char *pszFileName);
void addFrameWithTexture(CCTexture2D* pobTexture, CCRect rect);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
static CCAnimation* animation(void);
static CCAnimation* animationWithFrames(CCMutableArray<CCSpriteFrame*> *frames);
static CCAnimation* animationWithFrames(CCMutableArray<CCSpriteFrame*> *frames, float delay);
};