axmol/tools/tolua++/CCTMXLayer.pkg

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
class CCTMXLayer : public CCSpriteBatchNode
{
void setLayerSize(CCSize val);
CCSize getLayerSize();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setMapTileSize(CCSize val);
CCSize getMapTileSize();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setTiles(unsigned int* pval);
unsigned int* getTiles();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setTileSet(CCTMXTilesetInfo* pval);
CCTMXTilesetInfo* getTileSet();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setLayerOrientation(unsigned int val);
unsigned int getLayerOrientation();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setProperties(CCStringToStringDictionary* pval);
CCStringToStringDictionary* getProperties();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void releaseMap();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
CCSprite* tileAt(CCPoint tileCoordinate);
unsigned int tileGIDAt(CCPoint tileCoordinate);
void setTileGID(unsigned int gid, CCPoint tileCoordinate);
void removeTileAt(CCPoint tileCoordinate);
CCPoint positionAt(CCPoint tileCoordinate);
CCString *propertyNamed(const char *propertyName);
void setupTiles();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void setLayerName(const char *layerName);
const char* getLayerName();
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
static CCTMXLayer * layerWithTilesetInfo(CCTMXTilesetInfo *tilesetInfo, CCTMXLayerInfo *layerInfo, CCTMXMapInfo *mapInfo);
};