cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
NA NA. More...
#include <CCNotificationCenter.h>
Public Member Functions | |
CCNotificationObserver (CCObject *target, SEL_CallFuncO selector, const char *name, CCObject *obj) | |
CCNotificationObserver constructor. More... | |
~CCNotificationObserver () | |
CCNotificationObserver destructor function. More... | |
void | performSelector (CCObject *obj) |
Invokes the callback function of this observer. More... | |
virtual CCObject * | getTarget (void) |
virtual SEL_CallFuncO | getSelector (void) |
virtual char * | getName (void) |
virtual CCObject * | getObject (void) |
virtual int | getHandler (void) |
virtual void | setHandler (int var) |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
NA. More... | |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
CCObject (const CCObject &) | |
CCObject & | operator= (const CCObject &) |
virtual void | encodeWithCoder (DS_Dictionary *) |
virtual bool | canEncode () |
CCObjectType | getObjType () const |
virtual int | getTag () const |
virtual void | setTag (int nTag) |
void | setObjType (CCObjectType) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Protected Attributes | |
CCObject * | m_target |
SEL_CallFuncO | m_selector |
char * | m_name |
CCObject * | m_object |
int | m_nHandler |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
int | m_nTag |
int | m_eObjType |
unsigned int | m_uObjectIdxInArray |
Additional Inherited Members | |
![]() | |
static CCObject * | createWithCoder (DS_Dictionary *) |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
NA NA.
CCNotificationObserver | ( | CCObject * | target, |
SEL_CallFuncO | selector, | ||
const char * | name, | ||
CCObject * | obj | ||
) |
CCNotificationObserver constructor.
target | The target which wants to observer notification events. |
selector | The callback function which will be invoked when the specified notification event was posted. |
name | The name of this notification. |
obj | The extra parameter which will be passed to the callback function. |
CCNotificationObserver destructor function.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void performSelector | ( | CCObject * | obj | ) |
Invokes the callback function of this observer.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |