cocos2d-x节点(CCInteger.h)API
2013-12-06 20:52
417 查看
本文来自http://blog.csdn.net/runaying ,引用必须注明出处!
温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记
integer 简单的覆盖了一些方法没有太多内容
cocos2d-x节点(CCInteger.h)API
温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客 Cocos2d-X权威指南笔记integer 简单的覆盖了一些方法没有太多内容
///\cocos2d-x-3.0alpha0\cocos2dx\cocoa //integer 简单的覆盖了一些方法没有太多内容 #ifndef __CCINTEGER_H__ #define __CCINTEGER_H__ #include "CCObject.h" #include "platform/CCCommon.h" NS_CC_BEGIN /** * @addtogroup data_structures * @{ */ class CC_DLL Integer : public Object, public Clonable { public: static Integer* create(int v) { Integer* pRet = new Integer(v); pRet->autorelease(); return pRet; } /** * @js NA */ Integer(int v) : _value(v) {} int getValue() const {return _value;} /** * @js NA * @lua NA */ virtual ~Integer() { CCLOGINFO("deallocing ~Integer: %p", this); } /* override functions */ virtual void acceptVisitor(DataVisitor &visitor) { visitor.visit(this); } // overrides virtual Integer* clone() const override { return Integer::create(_value); } private: int _value; }; // end of data_structure group /// @} NS_CC_END #endif /* __CCINTEGER_H__ */
相关文章推荐
- cocos2d-x节点(CCThread.h)API
- cocos2d-x节点(CCPlatformConfig.h)API
- cocos2d-x节点(CCDouble.h)API
- cocos2d-x节点(CCActionGrid.h)API
- COcos2d-X 节点(CCGLBufferedNode.h)API
- cocos2d-x节点(CCTextureCache.h)API
- cocos2d-x节点(CCPlatformMacros.h)API
- cocos2d-x节点(CCTextureAtlas.h)API
- cocos2d-x节点(CCEventType.h)API
- cocos2d-x节点(CCData.h)API
- cocos2d-x节点(CCActionInstant.h)API
- COcos2d-X 节点(CCConfiguration.h)API
- cocos2d-x节点(CCTransitionProgress.h)API
- cocos2d-x节点(ccConfig.h)API
- cocos2d-X 节点(CCCamera.h.)API
- cocos2d-X 节点(CCActionFrameEasing.h)API
- cocos2d-x节点(CCTransitionPageTurn.h)API
- cocos2d-x节点(CCAutoreleasePool.h)API
- cocos2d-X 节点(CCMotionStreak.h)API
- cocos2d-X 节点(CCActionFrame.h)API