mirror of https://github.com/axmolengine/axmol.git
37 lines
925 B
Plaintext
37 lines
925 B
Plaintext
|
|
enum
|
|
{
|
|
/** Orthogonal orientation */
|
|
CCTMXOrientationOrtho,
|
|
/** Hexagonal orientation */
|
|
CCTMXOrientationHex,
|
|
/** Isometric orientation */
|
|
CCTMXOrientationIso,
|
|
};
|
|
|
|
class CCTMXTiledMap : public CCNode
|
|
{
|
|
void setMapSize(CCSize sz);
|
|
CCSize getMapSize();
|
|
|
|
void setTileSize(CCSize sz);
|
|
CCSize getTileSize();
|
|
|
|
void setMapOrientation(int val);
|
|
int getMapOrientation();
|
|
|
|
void setObjectGroups(CCArray* pval);
|
|
CCArray* getObjectGroups();
|
|
|
|
void setProperties(CCDictionary* pval);
|
|
CCDictionary* getProperties();
|
|
|
|
CCTMXLayer* getLayer(const char *layerName);
|
|
CCTMXObjectGroup* getObjectGroup(const char *groupName);
|
|
CCString* getProperty(const char *propertyName);
|
|
CCDictionary* getPropertiesForGID(int GID);
|
|
|
|
static CCTMXTiledMap * create(const char *tmxFile);
|
|
static CCTMXTiledMap* createWithXML(const char* tmxString, const char* resourcePath);
|
|
};
|