摘要: 来源 C++ 类学习笔记 :: 作用域限定符 类与封装的概念: 类: 类的实现、类的使用。 当使用类的时候,不需要关心实现的细节。当创建类的时候,才需要考虑到内部具体的实现细节。 类的封装: 成员变量,C++用于表示属性的变量。 成员函数,C++中用于表示类的行为的函数。 pubic、private 阅读全文
posted @ 2020-09-22 21:59 holm 阅读(161) 评论(0) 推荐(0) 编辑
摘要: TargetedAction TargetedAction类的官方注释; /** @class TargetedAction @brief Overrides the target of an action so that it always runs on the target specified 阅读全文
posted @ 2020-09-22 21:23 holm 阅读(369) 评论(0) 推荐(0) 编辑
摘要: CONVERT POINT FUNC cocos2d-x中,Node类有六个坐标转换函数,分别是: Vec2 convertToNodeSpace(const Vec2& worldPoint) const; Vec2 convertToWorldSpace(const Vec2& nodePoin 阅读全文
posted @ 2020-09-22 21:16 holm 阅读(360) 评论(0) 推荐(0) 编辑