axmol/tools/tolua++/CCTMXLayer.pkg

39 lines
1.2 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-04-26 14:32:17 +08:00
void setProperties(CCDictionary* pval);
CCDictionary* 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);
2012-04-26 14:32:17 +08:00
unsigned int tileGIDAt(CCPoint tileCoordinate, ccTMXTileFlags* flags);
2012-02-02 14:26:38 +08:00
void setTileGID(unsigned int gid, CCPoint tileCoordinate);
2012-04-26 14:32:17 +08:00
void setTileGID(unsigned int gid, CCPoint tileCoordinate, ccTMXTileFlags flags);
2012-02-02 14:26:38 +08:00
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
static CCTMXLayer * create(CCTMXTilesetInfo *tilesetInfo, CCTMXLayerInfo *layerInfo, CCTMXMapInfo *mapInfo);
2012-02-02 14:26:38 +08:00
};