TMX support is very immature, and probably some class/method's names will be renamed/modified/added/removed.
That's why I would like your opinions about them:
TMXTiledMap: is the main class, the one that you create. it's a subclass ofCocosNode.TMXMapInfo: contains the map info from the xml fileTMXLayerInfo: contains the layer info from the xml fileTMXTilesetInfo: contains the tileset info from the xml file
These TMXxxxInfo classes contains the xml info. Once the TMXTiledMap is created, these TMXxxxInfo classes might be useful (or not) depending on your game.
A 5th class might appear.
TMXLayer: Right now it is not needed, because each tmx-layer is represented by anAtlasSpriteManager, but I think I would need to extend it
//
// TMXLayer (subclass of AtlasSpriteManager)
//
// obtain the tile at position x,y
-(AtlasSprite*) tileAt:(CGPoint)pos;
So, what's the problem ?
TMXTiledMap and TMXLayer are cocos nodes, and IMHO, the names are ok.
but, I don't like these other names:
* TMXMapInfo
* TMXLayerInfo
* TMXTilesetInfo
because it's not clear what they do, and people might confuse them with the other 2 classes.
These 3 classes are not that important... but they can't be private classes (hidden) because the information they contain might be useful for some games.
so, what do you recommend ?
should these 3 classes be renamed ? which names do you recommend ?
should they me merged ? how ?
should they exists ? how to obtain the xml data in case a game needs it ?
thanks,