cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
宏定义 - 图1 宏定义 - 图2)
- 文件列表 - 文件成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

宏定义 | 函数

TriggerBase.h 文件参考

#include "cocos2d.h"

#include "cocostudio/CocoStudio.h"

#include "ObjectFactory.h"

#include "TriggerObj.h"

#include "TriggerMng.h"

## 宏定义
#define DECLARE_CLASS_INFO
#define IMPLEMENT_CLASS_INFO(className)
## 函数
void sendEvent (unsigned int event)

宏定义说明

#define DECLARE_CLASS_INFO

值:

public: \

static cocostudio::ObjectFactory::TInfo Type; \

static cocos2d::Ref* createInstance(void); \

cocos2d::Ref

Definition: CCRef.h:66

cocostudio::ObjectFactory::TInfo

Definition: ObjectFactory.h:50

#define IMPLEMENT_CLASS_INFO ( className)

值:

cocos2d::Ref* className::createInstance(void) \

{ \

auto ret = new className; \

ret->autorelease(); \

return ret; \

} \

cocostudio::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \

cocos2d::Ref

Definition: CCRef.h:66

cocos2d::Ref::autorelease

Ref * autorelease()

自动释放所有权在不久的将来.

函数说明

void sendEvent ( unsigned int event)