axmol/tools/tolua++/CCAnimation.pkg

51 lines
1.4 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
class CCAnimationFrame : public CCObject
2012-02-02 14:26:38 +08:00
{
CCAnimationFrame();
~CCAnimationFrame();
bool initWithSpriteFrame(CCSpriteFrame* spriteFrame, float delayUnits, CCDictionary* userInfo);
CCSpriteFrame* getSpriteFrame();
void setSpriteFrame(CCSpriteFrame* pSpFrame);
2011-06-14 14:31:25 +08:00
float getDelayUnits();
void setDelayUnits(float fDelayUnits);
2011-06-14 14:31:25 +08:00
CCDictionary* getUserInfo();
void setUserInfo(CCDictionary* pDict);
};
2011-06-14 14:31:25 +08:00
class CCAnimation : public CCObject
{
static CCAnimation* create(CCArray *arrayOfAnimationFrameNames, float delayPerUnit, unsigned int loops);
static CCAnimation* create(void);
static CCAnimation* createWithSpriteFrames(CCArray* arrayOfSpriteFrameNames, float delay);
static CCAnimation* createWithSpriteFrames(CCArray* arrayOfSpriteFrameNames);
void addSpriteFrame(CCSpriteFrame *pFrame);
void addSpriteFrameWithFileName(const char *pszFileName);
void addSpriteFrameWithTexture(CCTexture2D* pobTexture, const CCRect& rect);
float getTotalDelayUnits();
float getDelayPerUnit();
void setDelayPerUnit(float fDelayPerUnits);
float getDuration();
CCAnimation* clone();
CCObject* copy();
CCArray* getFrames();
void setFrames(CCArray* pFrames);
bool getRestoreOriginalFrame();
void setRestoreOriginalFrame(bool bRestoreFrame);
unsigned int getLoops();
void setLoops(unsigned int uLoops);
2012-02-02 14:26:38 +08:00
};