mirror of https://github.com/axmolengine/axmol.git
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
|
|
class CCTMXLayer : public CCSpriteBatchNode
|
|
{
|
|
void setLayerSize(CCSize val);
|
|
CCSize getLayerSize();
|
|
|
|
void setMapTileSize(CCSize val);
|
|
CCSize getMapTileSize();
|
|
|
|
void setTiles(unsigned int* pval);
|
|
unsigned int* getTiles();
|
|
|
|
void setTileSet(CCTMXTilesetInfo* pval);
|
|
CCTMXTilesetInfo* getTileSet();
|
|
|
|
void setLayerOrientation(unsigned int val);
|
|
unsigned int getLayerOrientation();
|
|
|
|
void setProperties(CCDictionary* pval);
|
|
CCDictionary* getProperties();
|
|
|
|
void releaseMap();
|
|
|
|
CCSprite* getTileAt(const CCPoint& tileCoordinate);
|
|
unsigned int getTileGIDAt(const CCPoint& tileCoordinate);
|
|
void setTileGID(unsigned int gid, const CCPoint& tileCoordinate);
|
|
void setTileGID(unsigned int gid, const CCPoint& tileCoordinate, ccTMXTileFlags flags);
|
|
void removeTileAt(CCPoint tileCoordinate);
|
|
CCPoint getPositionAt(CCPoint tileCoordinate);
|
|
CCString* getProperty(const char *propertyName) const;
|
|
void setupTiles();
|
|
|
|
void setLayerName(const char *layerName);
|
|
const char* getLayerName();
|
|
|
|
static CCTMXLayer * create(CCTMXTilesetInfo *tilesetInfo, CCTMXLayerInfo *layerInfo, CCTMXMapInfo *mapInfo);
|
|
};
|