2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCAnimationCache : public CCObject
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2012-02-02 14:26:38 +08:00
|
|
|
void addAnimation(CCAnimation *animation, const char * name);
|
|
|
|
void removeAnimationByName(const char* name);
|
|
|
|
CCAnimation* animationByName(const char* name);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
static CCAnimationCache* sharedAnimationCache(void);
|
|
|
|
static void purgeSharedAnimationCache(void);
|
2012-08-10 18:14:04 +08:00
|
|
|
|
|
|
|
void addAnimationsWithDictionary(CCDictionary* dictionary);
|
|
|
|
void addAnimationsWithFile(const char* plist);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|