|
cocos2d-iphone-extensions
0.2
Cocos2D Extensions API Reference (iOS version) for www.kobold2d.com developers
|
Public Member Functions | |
| (BOOL) | - generateAndSaveTMXMap: |
| (NSString *) | - generateMapXML: |
Static Public Member Functions | |
| (NSDictionary *) | + tileSetWithImage:named:width:height:tileSpacing: |
| (NSDictionary *) | + layerNamed:width:height:data:visible: |
| (NSDictionary *) | + makeObjectWithName:type:x:y:width:height:properties: |
Protected Attributes | |
| int | highestGID |
| NSMutableDictionary * | tileSets |
| NSMutableDictionary * | mapAttributes |
| NSMutableArray * | objectGroups |
| NSMutableArray * | layers |
| NSString * | path |
| NSMutableSet * | copiedAtlasNames |
| id< TMXGeneratorDelegate > | delegate_ |
Properties | |
| id< TMXGeneratorDelegate > | delegate |
generates a single TMX map with multiple layers. Keep in mind this won't build a world for you, it will just create a TMX file based on data it's fed.
| - (BOOL) generateAndSaveTMXMap: | (NSError **) | error |
Call this to generate your map & save it to filepath, provided by delegate. Returns NO and an error if the map isn't generated, otherwise returns YES.
| error | Pass NULL if you don't want error description. |
| + (NSDictionary*) layerNamed: | (NSString *) | layerName | |
| width: | (int) | width | |
| height: | (int) | height | |
| data: | (NSData *) | binaryLayerData | |
| visible: | (BOOL) | isVisible | |
Prepare layer setup info with given size in tiles, some additional data and visibilaty. (See TMXGeneratorTestLayer for how-to.
| + (NSDictionary*) makeObjectWithName: | (NSString *) | name | |
| type: | (NSString *) | type | |
| x: | (int) | x | |
| y: | (int) | y | |
| width: | (int) | width | |
| height: | (int) | height | |
| properties: | (NSDictionary *) | properties | |
Prepare single object with given name, type, position, size & properties dictionary. (See TMXGeneratorTestLayer for how-to.
| + (NSDictionary*) tileSetWithImage: | (NSString *) | imgName | |
| named: | (NSString *) | name | |
| width: | (int) | width | |
| height: | (int) | height | |
| tileSpacing: | (int) | spacing | |
Prepares tileset setup info with image filename, tileset name, size of tiles & spacing between them. (See TMXGeneratorTestLayer for how-to.)