#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) |
| getTarget More... | |
| virtual SEL_CallFuncO | getSelector (void) |
| getSelector More... | |
| virtual char * | getName (void) |
| getName More... | |
| virtual CCObject * | getObject (void) |
| getObject More... | |
| virtual int | getHandler (void) |
| getHandler More... | |
| virtual void | setHandler (int var) |
| setHandler More... | |
Public Member Functions inherited from CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| 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) |
Public Member Functions inherited from CCCopying | |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
Protected Attributes | |
| CCObject * | m_target |
| SEL_CallFuncO | m_selector |
| char * | m_name |
| CCObject * | m_object |
| int | m_nHandler |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
| 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 |
getHandler
|
virtual |
getName
|
virtual |
getObject
|
virtual |
getSelector
|
virtual |
getTarget
| void performSelector | ( | CCObject * | obj) |
Invokes the callback function of this observer.
|
virtual |
setHandler
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |