Hi all,
First off cocos2d is great! I've been lurking on these forums for a while now - they've proven to be a very useful resource.
However, I've been trying to rewrite a section of a game I'm working on. What I'm doing involves drawing a 'network' of nodes in a tree structure and I'm currently inheriting the Atlas Sprite Manager class for one of my classes, which I've called 'DCNetwork'. I'm initializing my class with the following line:
DCNetwork *network = [DCNetwork spriteManagerWithFile:@"devices.png"];
However, this doesn't seem to work as intended. Inserting a breakpoint on the following line and seeing what's in 'network' tells me it's of the type AtlasSpriteManager, not DCNetwork.
DCNetwork *network = (DCNetwork*)[DCNetwork spriteManagerWithFile:@"devices.png"];
Doesn't seem to work either. This has the negative side effect that I can't access any of the properties or methods that I've implemented in the DCNetwork.m file. Please help!
Thanks.