#include "CCPlatformConfig.h" #include "CCObject.h" #include "CCMutableArray.h" #include "CCGeometry.h" #include namespace cocos2d { class CCSpriteFrame; class CCTexture2D; class CCAnimation : public CCObject { const char* getName(void); void setName(const char *pszName); float getDelay(void); void setDelay(float fDelay); CCMutableArray* getFrames(void); void setFrames(CCMutableArray *pFrames); bool initWithFrames(CCMutableArray *pFrames); bool initWithFrames(CCMutableArray *pFrames, float delay); void addFrame(CCSpriteFrame *pFrame); void addFrameWithFileName(const char *pszFileName); void addFrameWithTexture(CCTexture2D* pobTexture, CCRect rect); bool init(void); public: static CCAnimation* animation(void); static CCAnimation* animationWithFrames(CCMutableArray *frames); static CCAnimation* animationWithFrames(CCMutableArray *frames, float delay); }; } // end of name sapce cocos2d