@Test public void testGetHeightInTilesWithMargin() { tileset = new Tileset(1, new ImageTilesetSource(128, 128, 32, 32, 0, 4)); Assert.assertEquals(3, tileset.getHeightInTiles()); tileset = new Tileset(1, new ImageTilesetSource(128, 96, 32, 32, 0, 4)); Assert.assertEquals(2, tileset.getHeightInTiles()); }
public int getHeightInTiles() { return tilesetSource.getHeightInTiles(); }
Tileset implements Disposable { public int getHeightInTiles() { return tilesetSource.getHeightInTiles(); } }
Tileset implements Disposable { public int getHeightInTiles() { return tilesetSource.getHeightInTiles(); } Tileset(int firstGid, TilesetSource tilesetSource); }
Tileset implements Disposable { public int getHeightInTiles() { return tilesetSource.getHeightInTiles(); } Tileset(int firstGid, TilesetSource tilesetSource); boolean containsProperty(String propertyName); String getProperty(String propertyName); void setProperty(String propertyName, String value); ObjectMap<String, String> getProperties(); void drawTile(Graphics g, int tileId, int renderX, int renderY); void drawTileset(Graphics g, int renderX, int renderY); Tile getTile(int tileId); Tile getTile(int x, int y); Array<AssetDescriptor> getDependencies(FileHandle tmxPath); boolean isTextureLoaded(); void loadTexture(FileHandle tmxPath); void loadTexture(AssetManager assetManager, FileHandle tmxPath); void loadTexture(TextureAtlas textureAtlas); @Override void dispose(); boolean contains(int tileId); int getTileId(int x, int y); int getTileX(int tileId); int getTileY(int tileId); int getWidthInTiles(); int getHeightInTiles(); int getWidth(); int getHeight(); int getTileWidth(); int getTileHeight(); int getSpacing(); int getMargin(); int getFirstGid(); String getSourceInternalUuid(); }
Tileset implements Disposable { public int getHeightInTiles() { return tilesetSource.getHeightInTiles(); } Tileset(int firstGid, TilesetSource tilesetSource); boolean containsProperty(String propertyName); String getProperty(String propertyName); void setProperty(String propertyName, String value); ObjectMap<String, String> getProperties(); void drawTile(Graphics g, int tileId, int renderX, int renderY); void drawTileset(Graphics g, int renderX, int renderY); Tile getTile(int tileId); Tile getTile(int x, int y); Array<AssetDescriptor> getDependencies(FileHandle tmxPath); boolean isTextureLoaded(); void loadTexture(FileHandle tmxPath); void loadTexture(AssetManager assetManager, FileHandle tmxPath); void loadTexture(TextureAtlas textureAtlas); @Override void dispose(); boolean contains(int tileId); int getTileId(int x, int y); int getTileX(int tileId); int getTileY(int tileId); int getWidthInTiles(); int getHeightInTiles(); int getWidth(); int getHeight(); int getTileWidth(); int getTileHeight(); int getSpacing(); int getMargin(); int getFirstGid(); String getSourceInternalUuid();  }