@Test public void getSpriteFilenames() { Map<String, String> fileNames = testGasTile.getSpriteFilenames(); assert (fileNames.keySet().size() == 1); assert (fileNames.keySet().contains("DEFAULT")); assert (fileNames.get("DEFAULT").equals("sprites/tiles/air.png")); }
public Map<String, String> getSpriteFilenames() { return spriteFilenames; }
TileInfo { public Map<String, String> getSpriteFilenames() { return spriteFilenames; } }
TileInfo { public Map<String, String> getSpriteFilenames() { return spriteFilenames; } TileInfo(Tiles type); }
TileInfo { public Map<String, String> getSpriteFilenames() { return spriteFilenames; } TileInfo(Tiles type); static Map<Tiles, TileInfo> getTileRegistry(); static boolean hasLoaded(); static void registerTiles(); static void clearRegistry(); static TileInfo get(Tiles type); Map<String, String> getSpriteFilenames(); TileInfo setDefaultFilename(String filename); int getBlockWidth(); int getBlockHeight(); int getNumSpriteFrames(); int getSpriteFrameDuration(); Tiles getType(); String getDisplayName(); TileInfo setDisplayName(String displayName); boolean isNaturalSurface(); boolean isDestructible(); TileInfo getBackgroundTile(); TileInfo getDamagedTile(); TileInfo setBackgroundTile(Tiles backgroundTile); TileInfo setDamagedTile(Tiles damagedTile); TileInfo setNaturalSurface(boolean naturalSurface); TileInfo setDestructible(boolean destructible); abstract boolean isObstacle(); abstract boolean isLiquid(); void onEntityOnTopOfBlock(Entity entity, Tile tile, long ms); List<String> getVariants(); @Override boolean equals(Object o); @Override int hashCode(); }
TileInfo { public Map<String, String> getSpriteFilenames() { return spriteFilenames; } TileInfo(Tiles type); static Map<Tiles, TileInfo> getTileRegistry(); static boolean hasLoaded(); static void registerTiles(); static void clearRegistry(); static TileInfo get(Tiles type); Map<String, String> getSpriteFilenames(); TileInfo setDefaultFilename(String filename); int getBlockWidth(); int getBlockHeight(); int getNumSpriteFrames(); int getSpriteFrameDuration(); Tiles getType(); String getDisplayName(); TileInfo setDisplayName(String displayName); boolean isNaturalSurface(); boolean isDestructible(); TileInfo getBackgroundTile(); TileInfo getDamagedTile(); TileInfo setBackgroundTile(Tiles backgroundTile); TileInfo setDamagedTile(Tiles damagedTile); TileInfo setNaturalSurface(boolean naturalSurface); TileInfo setDestructible(boolean destructible); abstract boolean isObstacle(); abstract boolean isLiquid(); void onEntityOnTopOfBlock(Entity entity, Tile tile, long ms); List<String> getVariants(); @Override boolean equals(Object o); @Override int hashCode(); static final int BLOCK_WIDTH; static final int BLOCK_HEIGHT; }