@Test public void testGetTileLayers() { Assert.assertEquals(true, tiledMap.getTileLayer("Ground") != null); Assert.assertEquals(0, tiledMap.getTileLayer("Ground").getIndex()); Assert.assertEquals(true, tiledMap.getTileLayer("Collisions") != null); Assert.assertEquals(1, tiledMap.getTileLayer("Collisions").getIndex()); Assert.assertEquals(true, tiledMap.getTileLayer("Higher") != null); Assert.assertEquals(4, tiledMap.getTileLayer("Higher").getIndex()); }
public TileLayer getTileLayer(String name) { return tiledMapData.getTileLayer(name); }
TiledMap { public TileLayer getTileLayer(String name) { return tiledMapData.getTileLayer(name); } }
TiledMap { public TileLayer getTileLayer(String name) { return tiledMapData.getTileLayer(name); } TiledMap(FileHandle fileHandle);  TiledMap(FileHandle fileHandle, boolean loadTilesetTextures);  TiledMap(TiledParser parser, FileHandle fileHandle, boolean loadTilesetTextures);  TiledMap(TiledMapData tiledMapData, boolean loadTilesetTextures); }
TiledMap { public TileLayer getTileLayer(String name) { return tiledMapData.getTileLayer(name); } TiledMap(FileHandle fileHandle);  TiledMap(FileHandle fileHandle, boolean loadTilesetTextures);  TiledMap(TiledParser parser, FileHandle fileHandle, boolean loadTilesetTextures);  TiledMap(TiledMapData tiledMapData, boolean loadTilesetTextures); boolean isTilesetTexturesLoaded(); boolean isTilesetTexturesLoaded(boolean ignoreObjectTemplateTilesets); boolean loadTilesetTextures(); boolean loadTilesetTextures(AssetManager assetManager); boolean loadTilesetTextures(TextureAtlas textureAtlas); boolean loadTilesetTextures(boolean loadObjectTemplateTilesets); boolean loadTilesetTextures(AssetManager assetManager, boolean loadObjectTemplateTilesets); boolean loadTilesetTextures(TextureAtlas textureAtlas, boolean loadObjectTemplateTilesets); void update(float delta); void draw(Graphics g, int x, int y); void draw(Graphics g, int x, int y, int layer); void draw(Graphics g, int x, int y, int startTileX, int startTileY, int widthInTiles, int heightInTiles); void draw(Graphics g, int x, int y, int startTileX, int startTileY, int widthInTiles, int heightInTiles,
			int layer); void drawTileLayer(Graphics g, TileLayer layer, int renderX, int renderY, int startTileX, int startTileY,
			int widthInTiles, int heightInTiles); void drawGroupLayer(Graphics g, GroupLayer layer, int renderX, int renderY, int startTileX, int startTileY,
	                          int widthInTiles, int heightInTiles); boolean containsProperty(String propertyName); String getProperty(String propertyName); void setProperty(String propertyName, String value); TileLayer getTileLayer(String name); TileLayer getTileLayer(String name, boolean recursive); TileLayer getTileLayer(int index); GroupLayer getGroupLayer(String name); GroupLayer getGroupLayer(String name, boolean recursive); GroupLayer getGroupLayer(int index); TiledObjectGroup getObjectGroup(String name); TiledObjectGroup getObjectGroup(String name, boolean recursive); Iterable<TiledObjectGroup> getObjectGroups(); int getLayerIndex(String name); int getLayerIndexIgnoreCase(String name); Tile getTile(int tileId); Tile getTile(int x, int y, int layer); void dispose(); void dispose(boolean disposeTilesets); Orientation getOrientation(); StaggerAxis getStaggerAxis(); StaggerIndex getStaggerIndex(); int getSideLength(); int getWidth(); int getHeight(); int getTileWidth(); int getTileHeight(); int getPixelWidth(); int getPixelHeight(); Array<Tileset> getTilesets(); Array<Layer> getLayers(); int getTotalObjectGroups(); Color getBackgroundColor(); void setTileLayerRenderer(TileLayerRenderer tileLayerRenderer); void setTiledObjectGroupRenderer(TiledObjectGroupRenderer tiledObjectGroupRenderer); boolean containsAnimatedTiles(); }
TiledMap { public TileLayer getTileLayer(String name) { return tiledMapData.getTileLayer(name); } TiledMap(FileHandle fileHandle);  TiledMap(FileHandle fileHandle, boolean loadTilesetTextures);  TiledMap(TiledParser parser, FileHandle fileHandle, boolean loadTilesetTextures);  TiledMap(TiledMapData tiledMapData, boolean loadTilesetTextures); boolean isTilesetTexturesLoaded(); boolean isTilesetTexturesLoaded(boolean ignoreObjectTemplateTilesets); boolean loadTilesetTextures(); boolean loadTilesetTextures(AssetManager assetManager); boolean loadTilesetTextures(TextureAtlas textureAtlas); boolean loadTilesetTextures(boolean loadObjectTemplateTilesets); boolean loadTilesetTextures(AssetManager assetManager, boolean loadObjectTemplateTilesets); boolean loadTilesetTextures(TextureAtlas textureAtlas, boolean loadObjectTemplateTilesets); void update(float delta); void draw(Graphics g, int x, int y); void draw(Graphics g, int x, int y, int layer); void draw(Graphics g, int x, int y, int startTileX, int startTileY, int widthInTiles, int heightInTiles); void draw(Graphics g, int x, int y, int startTileX, int startTileY, int widthInTiles, int heightInTiles,
			int layer); void drawTileLayer(Graphics g, TileLayer layer, int renderX, int renderY, int startTileX, int startTileY,
			int widthInTiles, int heightInTiles); void drawGroupLayer(Graphics g, GroupLayer layer, int renderX, int renderY, int startTileX, int startTileY,
	                          int widthInTiles, int heightInTiles); boolean containsProperty(String propertyName); String getProperty(String propertyName); void setProperty(String propertyName, String value); TileLayer getTileLayer(String name); TileLayer getTileLayer(String name, boolean recursive); TileLayer getTileLayer(int index); GroupLayer getGroupLayer(String name); GroupLayer getGroupLayer(String name, boolean recursive); GroupLayer getGroupLayer(int index); TiledObjectGroup getObjectGroup(String name); TiledObjectGroup getObjectGroup(String name, boolean recursive); Iterable<TiledObjectGroup> getObjectGroups(); int getLayerIndex(String name); int getLayerIndexIgnoreCase(String name); Tile getTile(int tileId); Tile getTile(int x, int y, int layer); void dispose(); void dispose(boolean disposeTilesets); Orientation getOrientation(); StaggerAxis getStaggerAxis(); StaggerIndex getStaggerIndex(); int getSideLength(); int getWidth(); int getHeight(); int getTileWidth(); int getTileHeight(); int getPixelWidth(); int getPixelHeight(); Array<Tileset> getTilesets(); Array<Layer> getLayers(); int getTotalObjectGroups(); Color getBackgroundColor(); void setTileLayerRenderer(TileLayerRenderer tileLayerRenderer); void setTiledObjectGroupRenderer(TiledObjectGroupRenderer tiledObjectGroupRenderer); boolean containsAnimatedTiles(); static boolean STRICT_LAYER_VISIBILITY; static boolean FAST_RENDER_EMPTY_LAYERS; static boolean CLIP_TILES_OUTSIDE_GRAPHICS_VIEWPORT; }