cocos2d-x  2.1.1

Calls a 'callback' with the node as the first argument N means Node. More...

#include <CCActionInstant.h>

Inheritance diagram for CCCallFuncN:
CCCallFunc TypeInfo CCActionInstant CCFiniteTimeAction CCAction CCObject CCCopying CCCallFuncND

Public Member Functions

 CCCallFuncN ()
 
virtual ~CCCallFuncN ()
 
virtual long getClassTypeInfo ()
 
virtual bool initWithTarget (CCObject *pSelectorTarget, SEL_CallFuncN selector)
 initializes the action with the callback
 
virtual CCObjectcopyWithZone (CCZone *pZone)
 
virtual void execute ()
 executes the callback
 
- Public Member Functions inherited from CCCallFunc
 CCCallFunc ()
 
virtual ~CCCallFunc ()
 
virtual bool initWithTarget (CCObject *pSelectorTarget)
 initializes the action with the callback
 
virtual void update (float time)
 called once per frame.
 
CCObjectgetTargetCallback ()
 
void setTargetCallback (CCObject *pSel)
 
int getScriptHandler ()
 
- Public Member Functions inherited from CCActionInstant
 CCActionInstant ()
 
virtual ~CCActionInstant ()
 
virtual bool isDone (void)
 return true if the action has finished
 
virtual void step (float dt)
 called every frame with it's delta time. DON'T override unless you know what you are doing.
 
virtual CCFiniteTimeActionreverse (void)
 returns a reversed action
 
- Public Member Functions inherited from CCFiniteTimeAction
 CCFiniteTimeAction ()
 
virtual ~CCFiniteTimeAction ()
 
float getDuration (void)
 get duration in seconds of the action
 
void setDuration (float duration)
 set duration in seconds of the action
 
- Public Member Functions inherited from CCAction
 CCAction (void)
 
virtual ~CCAction (void)
 
const char * description ()
 
virtual void startWithTarget (CCNode *pTarget)
 called before the action start. It will also set the target.
 
virtual void stop (void)
 called after the action has finished.
 
CCNodegetTarget (void)
 
void setTarget (CCNode *pTarget)
 The action will modify the target properties.
 
CCNodegetOriginalTarget (void)
 
void setOriginalTarget (CCNode *pOriginalTarget)
 Set the original target, since target can be nil.
 
int getTag (void)
 
void setTag (int nTag)
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 
void release (void)
 
void retain (void)
 
CCObjectautorelease (void)
 
CCObjectcopy (void)
 
bool isSingleReference (void)
 
unsigned int retainCount (void)
 
virtual bool isEqual (const CCObject *pObject)
 

Static Public Member Functions

static CCCallFuncNcreate (CCObject *pSelectorTarget, SEL_CallFuncN selector)
 creates the action with the callback
 
static CCCallFuncNcreate (int nHandler)
 creates the action with the handler script function
 
- Static Public Member Functions inherited from CCCallFunc
static CCCallFunccreate (CCObject *pSelectorTarget, SEL_CallFunc selector)
 creates the action with the callback
 
static CCCallFunccreate (int nHandler)
 creates the action with the handler script function
 

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
 
int m_nLuaID
 
- Protected Attributes inherited from CCCallFunc
CCObjectm_pSelectorTarget
 Target that will be called.
 
int m_nScriptHandler
 
union {
   SEL_CallFunc   m_pCallFunc
 
   SEL_CallFuncN   m_pCallFuncN
 
   SEL_CallFuncND   m_pCallFuncND
 
   SEL_CallFuncO   m_pCallFuncO
 
}; 
 

Detailed Description

Calls a 'callback' with the node as the first argument N means Node.

Constructor & Destructor Documentation

CCCallFuncN ( )
inline
virtual ~CCCallFuncN ( )
inlinevirtual

Member Function Documentation

virtual CCObject* copyWithZone ( CCZone pZone)
virtual

Reimplemented from CCCallFunc.

Reimplemented in CCCallFuncND.

static CCCallFuncN* create ( CCObject pSelectorTarget,
SEL_CallFuncN  selector 
)
static

creates the action with the callback

typedef void (CCObject::SEL_CallFuncN)(CCNode);

static CCCallFuncN* create ( int  nHandler)
static

creates the action with the handler script function

virtual void execute ( )
virtual

executes the callback

Reimplemented from CCCallFunc.

Reimplemented in CCCallFuncND.

virtual long getClassTypeInfo ( )
inlinevirtual

Implements TypeInfo.

Reimplemented in CCCallFuncND.

virtual bool initWithTarget ( CCObject pSelectorTarget,
SEL_CallFuncN  selector 
)
virtual

initializes the action with the callback

typedef void (CCObject::SEL_CallFuncN)(CCNode);


The documentation for this class was generated from the following file: