- //返回图层尺寸的大小
- virtual const CCSize & getLayerSize (void)
- //设置图层尺寸的大小
- virtual void setLayerSize (const CCSize &var)
- //返回砖块尺寸的大小
- virtual const CCSize & getMapTileSize (void)
- //设置砖块尺寸的大小
- virtual void setMapTileSize (const CCSize &var)
- //返回砖块属性信息
- virtual CCTMXTilesetInfo * getTileSet (void)
- //设置砖块属性信息
- virtual void setTileSet (CCTMXTilesetInfo *var)
- //返回图层属性字典(包含了所有属性)
- virtual CCDictionary * getProperties (void)
- //设置图层属性
- virtual void setProperties (CCDictionary *var)
- //构造函数
- CCTMXLayer ()
- //析构函数
- virtual ~CCTMXLayer ()
- //初始化函数,参数为:砖块配置对象,图形配置对象,地图配置对象
- bool initWithTilesetInfo (CCTMXTilesetInfo *tilesetInfo, CCTMXLayerInfo *layerInfo, CCTMXMapInfo *mapInfo)
- //释放图层中砖块的拼接信息
- void releaseMap ()
- //返回指定位置的砖块对象
- CCSprite * tileAt (const CCPoint &tileCoordinate)
- //返回指定位置砖块对象的ID
- unsigned int tileGIDAt (const CCPoint &tileCoordinate)
- //返回指定位置砖块对象的ID
- unsigned int tileGIDAt (const CCPoint &tileCoordinate, ccTMXTileFlags *flags)
- //设置指定位置砖块对象的ID
- void setTileGID (unsigned int gid, const CCPoint &tileCoordinate)
- //设置指定位置砖块对象的ID
- void setTileGID (unsigned int gid, const CCPoint &tileCoordinate, ccTMXTileFlags flags)
- //移除指定位置砖块对象
- void removeTileAt (const CCPoint &tileCoordinate)
- //返回指定坐标的地图位置
- CCPoint positionAt (const CCPoint &tileCoordinate)
- //返回指定属性数值
- CCString * propertyNamed (const char *propertyName)
- //创建图层中的砖块
- void setupTiles ()
- //得到图层的名字
- const char * getLayerName ()
- //设置图层的名字
- void setLayerName (const char *layerName)
瓦片地图
最新推荐文章于 2023-12-07 15:59:30 发布