CCTiledMapInfo Class Reference
| Inherits from | NSObject |
| Conforms to | NSXMLParserDelegate |
| Declared in | CCTMXXMLParser.h |
Overview
CCTiledMapInfo contains information regarding the Tile Map. This information is obtained from the supplied Tile Map File (TMX).
Tasks
Accessing the Tile Map Info Attributes
-
orientationproperty -
mapSizeproperty -
tileSizeproperty -
layersproperty -
tilesetsproperty -
filenameproperty -
resourcesproperty -
objectGroupsproperty -
propertiesproperty -
contentScaleproperty
Creating a CCTiledMapInfo Object
Initializing a CCTiledMapInfo Object
Properties
contentScale
Content scale of the TMX file. Mostly for backwords compatibility.
@property (nonatomic, readwrite) CGFloat contentScaleDeclared In
CCTMXXMLParser.hfilename
Tile Map file path.
@property (nonatomic, readwrite, strong) NSString *filenameDeclared In
CCTMXXMLParser.hlayers
Map layers array.
@property (nonatomic, readwrite, strong) NSMutableArray *layersDeclared In
CCTMXXMLParser.hmapSize
Map size.
@property (nonatomic, readwrite, assign) CGSize mapSizeDeclared In
CCTMXXMLParser.hobjectGroups
Object groups.
@property (nonatomic, readwrite, strong) NSMutableArray *objectGroupsDeclared In
CCTMXXMLParser.horientation
Map orienatation method.
@property (nonatomic, readwrite, assign) int orientationDeclared In
CCTMXXMLParser.hproperties
Properties dictionary.
@property (nonatomic, readwrite, strong) NSMutableDictionary *propertiesDeclared In
CCTMXXMLParser.hresources
Tile Map resource file path.
@property (nonatomic, readwrite, strong) NSString *resourcesDeclared In
CCTMXXMLParser.hClass Methods
formatWithTMXFile:
Creates and returns a CCTiledMapInfo object using the TMX format file specified.
+ (id)formatWithTMXFile:(NSString *)tmxFileParameters
- tmxFile
CCTiledMapInfo.
Return Value
The CCTiledMapInfo Object.
Declared In
CCTMXXMLParser.hformatWithXML:resourcePath:
Creates and returns a CCTiledMapInfo object using the TMX XML and resource file path.
+ (id)formatWithXML:(NSString *)tmxString resourcePath:(NSString *)resourcePathParameters
- tmxString
TMX XML.
- resourcePath
Resource file path.
Return Value
The CCTiledMapInfo Object.
Declared In
CCTMXXMLParser.hInstance Methods
initWithFile:
Initializes and returns a CCTiledMapInfo object using the TMX format file specified.
- (id)initWithFile:(NSString *)tmxFileParameters
- tmxFile
CCTiledMapInfo.
Return Value
An initialized CCTiledMapInfo Object.
Declared In
CCTMXXMLParser.hinitWithXML:resourcePath:
Initializes and returns a CCTiledMapInfo object using the TMX XML and resource file path.
- (id)initWithXML:(NSString *)tmxString resourcePath:(NSString *)resourcePathParameters
- tmxString
TMX XML.
- resourcePath
Resource file path.
Return Value
An initialized CCTiledMapInfo Object.
Declared In
CCTMXXMLParser.h