CCMutableArray is deprecated now and at certain place we can use CCArray instead of it..
I am trying to make array of VRope objects and when trying to iterate through it..it is giving error..
I have tried like this:
for(rope = ropes~~>begin;rope != ropes~~>end();++rope)
rope~~>update; //Not working
rope~~>updateSprites(); //Not working
update(CCTime) and updateSprites() are methods of VRope..
And i get error like this:
error: request for member ‘update’ in ‘rope.gnu_cxx::normal_iterator<Iterator,Container>::operator* [with _Iterator = VRope*, _Container = std::vector]’, which is of non-class type ’VRope’
Does anybody know what should be the proper way here..