TMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
TMXMapInfo () | |
virtual | ~TMXMapInfo () |
bool | initWithTMXFile (const std::string &tmxFile) |
initializes a TMX format with a tmx file More... | |
var | initWithTMXFile ( var tmxFile) |
initializes a TMX format with a tmx file More... | |
local | initWithTMXFile ( local tmxFile) |
initializes a TMX format with a tmx file More... | |
bool | initWithXML (const std::string &tmxString, const std::string &resourcePath) |
initializes a TMX format with an XML string and a TMX resource path More... | |
var | initWithXML ( var tmxString, var resourcePath) |
initializes a TMX format with an XML string and a TMX resource path More... | |
local | initWithXML ( local tmxString, local resourcePath) |
initializes a TMX format with an XML string and a TMX resource path More... | |
bool | parseXMLFile (const std::string &xmlFilename) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file More... | |
bool | parseXMLString (const std::string &xmlString) |
ValueMapIntKey & | getTileProperties () |
void | setTileProperties (const ValueMapIntKey &tileProperties) |
var | setTileProperties ( var tileProperties) |
local | setTileProperties ( local tileProperties) |
int | getOrientation () const |
map orientation More... | |
local | getOrientation () |
map orientation More... | |
void | setOrientation (int orientation) |
local | setOrientation ( local orientation) |
const Size & | getMapSize () const |
map width & height More... | |
local | getMapSize () |
map width & height More... | |
void | setMapSize (const Size &mapSize) |
var | setMapSize ( var mapSize) |
local | setMapSize ( local mapSize) |
const Size & | getTileSize () const |
tiles width & height More... | |
local | getTileSize () |
tiles width & height More... | |
void | setTileSize (const Size &tileSize) |
const Vector< TMXLayerInfo * > & | getLayers () const |
Layers. More... | |
local | getLayers () |
Layers. More... | |
Vector< TMXLayerInfo * > & | getLayers () |
local | getLayers () |
void | setLayers (const Vector< TMXLayerInfo * > &layers) |
var | setLayers ( var layers) |
local | setLayers ( local layers) |
const Vector< TMXTilesetInfo * > & | getTilesets () const |
tilesets More... | |
local | getTilesets () |
tilesets More... | |
Vector< TMXTilesetInfo * > & | getTilesets () |
local | getTilesets () |
void | setTilesets (const Vector< TMXTilesetInfo * > &tilesets) |
var | setTilesets ( var tilesets) |
local | setTilesets ( local tilesets) |
const Vector< TMXObjectGroup * > & | getObjectGroups () const |
ObjectGroups. More... | |
local | getObjectGroups () |
ObjectGroups. More... | |
Vector< TMXObjectGroup * > & | getObjectGroups () |
void | setObjectGroups (const Vector< TMXObjectGroup * > &groups) |
var | setObjectGroups ( var groups) |
local | setObjectGroups ( local groups) |
int | getParentElement () const |
parent element More... | |
local | getParentElement () |
parent element More... | |
void | setParentElement (int element) |
local | setParentElement ( local element) |
int | getParentGID () const |
parent GID More... | |
local | getParentGID () |
parent GID More... | |
void | setParentGID (int gid) |
local | setParentGID ( local gid) |
int | getLayerAttribs () const |
layer attribs More... | |
local | getLayerAttribs () |
layer attribs More... | |
void | setLayerAttribs (int layerAttribs) |
local | setLayerAttribs ( local layerAttribs) |
bool | isStoringCharacters () const |
is storing characters? More... | |
var | isStoringCharacters () |
is storing characters? More... | |
local | isStoringCharacters () |
is storing characters? More... | |
bool | getStoringCharacters () const |
local | getStoringCharacters () |
void | setStoringCharacters (bool storingCharacters) |
local | setStoringCharacters ( local storingCharacters) |
const ValueMap & | getProperties () const |
properties More... | |
var | getProperties () |
properties More... | |
local | getProperties () |
properties More... | |
ValueMap & | getProperties () |
void | setProperties (const ValueMap &properties) |
var | setProperties ( var properties) |
local | setProperties ( local properties) |
void | startElement (void *ctx, const char *name, const char **atts) |
void | endElement (void *ctx, const char *name) |
void | textHandler (void *ctx, const char *ch, int len) |
const std::string & | getCurrentString () const |
var | getCurrentString () |
local | getCurrentString () |
void | setCurrentString (const std::string ¤tString) |
var | setCurrentString ( var currentString) |
local | setCurrentString ( local currentString) |
const std::string & | getTMXFileName () const |
local | getTMXFileName () |
void | setTMXFileName (const std::string &fileName) |
local | setTMXFileName ( local fileName) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Public Member Functions inherited from SAXDelegator | |
virtual | ~SAXDelegator () |
var | ~SAXDelegator () |
local | ~SAXDelegator () |
Static Public Member Functions | |
static TMXMapInfo * | create (const std::string &tmxFile) |
creates a TMX Format with a tmx file More... | |
static TMXMapInfo * | createWithXML (const std::string &tmxString, const std::string &resourcePath) |
creates a TMX Format with an XML string and a TMX resource path More... | |
var | createWithXML ( var tmxString, var resourcePath) |
creates a TMX Format with an XML string and a TMX resource path More... | |
local | createWithXML ( local tmxString, local resourcePath) |
creates a TMX Format with an XML string and a TMX resource path More... | |
static TMXMapInfo * | formatWithTMXFile (const char *tmxFile) |
creates a TMX Format with a tmx file More... | |
var | formatWithTMXFile ( var tmxFile) |
creates a TMX Format with a tmx file More... | |
local | formatWithTMXFile ( local tmxFile) |
creates a TMX Format with a tmx file More... | |
static TMXMapInfo * | formatWithXML (const char *tmxString, const char *resourcePath) |
creates a TMX Format with an XML string and a TMX resource path More... | |
Protected Member Functions | |
void | internalInit (const std::string &tmxFileName, const std::string &resourcePath) |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes | |
int | _orientation |
map orientation More... | |
Size | _mapSize |
map width & height More... | |
var | _mapSize |
map width & height More... | |
local | _mapSize |
map width & height More... | |
Size | _tileSize |
tiles width & height More... | |
var | _tileSize |
tiles width & height More... | |
local | _tileSize |
tiles width & height More... | |
Vector< TMXLayerInfo * > | _layers |
Layers. More... | |
var | _layers |
Layers. More... | |
local | _layers |
Layers. More... | |
Vector< TMXTilesetInfo * > | _tilesets |
tilesets More... | |
var | _tilesets |
tilesets More... | |
local | _tilesets |
tilesets More... | |
Vector< TMXObjectGroup * > | _objectGroups |
ObjectGroups. More... | |
var | _objectGroups |
ObjectGroups. More... | |
local | _objectGroups |
ObjectGroups. More... | |
int | _parentElement |
parent element More... | |
var | _parentElement |
parent element More... | |
local | _parentElement |
parent element More... | |
int | _parentGID |
parent GID More... | |
var | _parentGID |
parent GID More... | |
local | _parentGID |
parent GID More... | |
int | _layerAttribs |
layer attribs More... | |
local | _layerAttribs |
layer attribs More... | |
bool | _storingCharacters |
is storing characters? More... | |
var | _storingCharacters |
is storing characters? More... | |
local | _storingCharacters |
is storing characters? More... | |
ValueMap | _properties |
properties More... | |
var | _properties |
properties More... | |
local | _properties |
properties More... | |
int | _xmlTileIndex |
xml format tile index More... | |
local | _xmlTileIndex |
xml format tile index More... | |
std::string | _TMXFileName |
tmx filename More... | |
var | _TMXFileName |
tmx filename More... | |
local | _TMXFileName |
tmx filename More... | |
std::string | _resources |
var | _resources |
local | _resources |
std::string | _currentString |
current string More... | |
var | _currentString |
current string More... | |
local | _currentString |
current string More... | |
ValueMapIntKey | _tileProperties |
tile properties More... | |
local | _tileProperties |
tile properties More... | |
int | _currentFirstGID |
var | _currentFirstGID |
local | _currentFirstGID |
bool | _recordFirstGID |
var | _recordFirstGID |
local | _recordFirstGID |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
TMXMapInfo contains the information about the map like:
And it also contains:
This information is obtained from the TMX file.
TMXMapInfo | ( | ) |
var ctor | ( | ) |
local TMXMapInfo | ( | ) |
|
virtual |
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
virtual |
Implements SAXDelegator.
|
inlinestatic |
creates a TMX Format with a tmx file
|
inlinestatic |
creates a TMX Format with a tmx file
|
inlinestatic |
creates a TMX Format with a tmx file
|
inlinestatic |
creates a TMX Format with an XML string and a TMX resource path
|
inlinestatic |
creates a TMX Format with an XML string and a TMX resource path
|
inlinestatic |
creates a TMX Format with an XML string and a TMX resource path
|
inline |
|
inline |
|
inline |
|
inline |
layer attribs
|
inline |
layer attribs
|
inline |
layer attribs
|
inline |
Layers.
|
inline |
Layers.
|
inline |
Layers.
|
inline |
|
inline |
|
inline |
|
inline |
map width & height
|
inline |
map width & height
|
inline |
map width & height
|
inline |
ObjectGroups.
|
inline |
ObjectGroups.
|
inline |
ObjectGroups.
|
inline |
|
inline |
|
inline |
|
inline |
map orientation
|
inline |
map orientation
|
inline |
map orientation
|
inline |
parent element
|
inline |
parent element
|
inline |
parent element
|
inline |
parent GID
|
inline |
parent GID
|
inline |
parent GID
|
inline |
properties
|
inline |
properties
|
inline |
properties
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
tilesets
|
inline |
tilesets
|
inline |
tilesets
|
inline |
|
inline |
|
inline |
|
inline |
tiles width & height
|
inline |
tiles width & height
|
inline |
tiles width & height
|
inline |
|
inline |
|
inline |
bool initWithTMXFile | ( | const std::string & | tmxFile | ) |
initializes a TMX format with a tmx file
var initWithTMXFile | ( | var | tmxFile | ) |
initializes a TMX format with a tmx file
local initWithTMXFile | ( | local | tmxFile | ) |
initializes a TMX format with a tmx file
bool initWithXML | ( | const std::string & | tmxString, |
const std::string & | resourcePath | ||
) |
initializes a TMX format with an XML string and a TMX resource path
var initWithXML | ( | var | tmxString, |
var | resourcePath | ||
) |
initializes a TMX format with an XML string and a TMX resource path
local initWithXML | ( | local | tmxString, |
local | resourcePath | ||
) |
initializes a TMX format with an XML string and a TMX resource path
|
protected |
|
protected |
|
protected |
|
inline |
is storing characters?
|
inline |
is storing characters?
|
inline |
is storing characters?
bool parseXMLFile | ( | const std::string & | xmlFilename | ) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
var parseXMLFile | ( | var | xmlFilename | ) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
local parseXMLFile | ( | local | xmlFilename | ) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
bool parseXMLString | ( | const std::string & | xmlString | ) |
var parseXMLString | ( | var | xmlString | ) |
local parseXMLString | ( | local | xmlString | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements SAXDelegator.
|
virtual |
Implements SAXDelegator.
|
protected |
|
protected |
|
protected |
|
protected |
current string
|
protected |
current string
|
protected |
current string
|
protected |
layer attribs
|
protected |
layer attribs
|
protected |
layer attribs
|
protected |
Layers.
|
protected |
Layers.
|
protected |
Layers.
|
protected |
map width & height
|
protected |
map width & height
|
protected |
map width & height
|
protected |
ObjectGroups.
|
protected |
ObjectGroups.
|
protected |
ObjectGroups.
|
protected |
map orientation
|
protected |
map orientation
|
protected |
map orientation
|
protected |
parent element
|
protected |
parent element
|
protected |
parent element
|
protected |
parent GID
|
protected |
parent GID
|
protected |
parent GID
|
protected |
properties
|
protected |
properties
|
protected |
properties
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
is storing characters?
|
protected |
is storing characters?
|
protected |
is storing characters?
|
protected |
tile properties
|
protected |
tile properties
|
protected |
tile properties
|
protected |
tilesets
|
protected |
tilesets
|
protected |
tilesets
|
protected |
tiles width & height
|
protected |
tiles width & height
|
protected |
tiles width & height
|
protected |
tmx filename
|
protected |
tmx filename
|
protected |
tmx filename
|
protected |
xml format tile index
|
protected |
xml format tile index
|
protected |
xml format tile index