这是HELLOWORLD的一个头文件,请问括弧之内的这个参数(CCObject* pSender)具体是个什么东东?

#ifndef HELLOWORLD_SCENE_H
#define HELLOWORLD_SCENE_H

#include “cocos2d.h”
//想要使用cocos2d-x引擎,就要包含cocos2d头文件

class HelloWorld : public cocos2d::CCLayer
{
public:
// Method ‘init’ in cocos2d-x returns bool, instead of ‘id’ in cocos2d-iphone (an object pointer)
virtual bool init();

// there's no 'id' in cpp, so we recommend to return the class instance pointer 获取场景指针
static cocos2d::CCScene* scene();

// a selector callback 菜单关闭的回调函数
void menuCloseCallback(CCObject* pSender);

// preprocessor macro for "static create()" constructor ( node() deprecated )
CREATE_FUNC(HelloWorld);

};

#endif // HELLOWORLD_SCENE_H

请问括弧之内的这个参数(CCObject* pSender)具体是个什么东东?

   // a selector callback 菜单关闭的回调函数
    void menuCloseCallback(CCObject* pSender);  // 回调函数有一个pSender参数,这个参数代表触发这个回调函数的对象,也就是我们的CCMenuItemLabel菜单对象。
```

就是CCObject这个对象的指针啊。。。

准确来说是CCObject这种类型的指针

回调函数一般会带这个,用于接收函数调用者传入的参数~~多用于callfun系列:14: