NSUInteger equivalent in cocos2d-x for windows.

NSUInteger equivalent in cocos2d-x for windows.
0.0 0


Hi all,

Is there any macro for NSUInteger implemented in cocos2d-x for use in visual c**. I need this to port a project from obj-c to c**.

And also , I have seen these :

property (nonatomic, readonly) CGPoint stickPosition;property (nonatomic, readonly) float degrees;
property (nonatomic, readonly) CGPoint velocity;property (nonatomic, assign) BOOL autoCenter;
property (nonatomic, assign) BOOL isDPad;property (nonatomic, assign) BOOL hasDeadzone;
`property (nonatomic, assign) NSUInteger numberOfDirections;

property (nonatomic, assign) float joystickRadius;property (nonatomic, assign) float thumbRadius;
`property (nonatomic, assign) float deadRadius;

for the variables which are already defined above . Is there use in writing these in any way in c++ and is it possible?


Use “int” directly.
CCPoint, float, bool ,int, just like these.


Thanks wang for your answer. What about the line
@property (nonatomic, readonly) CGPoint stickPosition;

How can I convert it to c++.


II think that the cocos2d-x have macros definitions “CC_PROPERTY” to simulate obj-c @property (nonatomic, readonly) 。
CC_PROPERTY(CCPoint, stickPosition, stickPosition);