2012-01-30 17:47:47 +08:00
|
|
|
#include "ccTypes.h"
|
|
|
|
|
2011-06-14 14:31:25 +08:00
|
|
|
namespace cocos2d {
|
|
|
|
|
|
|
|
class CCCopying
|
|
|
|
{
|
|
|
|
|
|
|
|
CCObject* copyWithZone(CCZone* pZone);
|
|
|
|
};
|
|
|
|
|
|
|
|
class CCObject : public CCCopying
|
|
|
|
{
|
|
|
|
|
|
|
|
CCObject(void);
|
|
|
|
~CCObject(void);
|
|
|
|
|
|
|
|
void release(void);
|
|
|
|
void retain(void);
|
|
|
|
CCObject* autorelease(void);
|
|
|
|
CCObject* copy(void);
|
|
|
|
bool isSingleRefrence(void);
|
|
|
|
unsigned int retainCount(void);
|
|
|
|
bool isEqual(const CCObject* pObject);
|
2012-01-30 17:47:47 +08:00
|
|
|
void update(ccTime dt);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
};
|
|
|
|
}//namespace cocos2d
|
|
|
|
|
|
|
|
|