C.J. Kimberlin wrote:
I just noticed that some of these wrapper classes already exist! See CCFloat, CCBool, CCDouble, and CCInteger!
Unfortunately CCPoint does not inherit from CCObject so you can’t store those, but you can do the rest :).
hi thanks for the reply… tried doing the same for floats and it says unknow type name ccfloat??? but the same works for integer. I dont know what I am doing wrong…
CCDictionary dict = CCDictionary::create;
CCIntegerv1 = CCInteger::create(tgid);
CCFloat *f1 = CCFloat::create(tileRect.origin.x); <— unknown type error