public class ScalingHelper
extends java.lang.Object
Tile
s.Constructor and Description |
---|
ScalingHelper(java.util.Map<java.awt.Point,Tile> tiles,
TileFactory tileFactory,
float scale)
Create a
ScalingHelper for scaling a loose collection of Tile s. |
Modifier and Type | Method and Description |
---|---|
Tile |
createScaledTile(int tileX,
int tileY) |
java.util.Set<Tile> |
getAllScaledTiles(org.pepsoft.util.ProgressReceiver progressReceiver) |
boolean |
getBitLayerValueAt(Layer layer,
int x,
int y) |
float |
getHeightAt(int x,
int y) |
int |
getHighestTileX() |
int |
getHighestTileY() |
int |
getLayerValueAt(Layer layer,
int x,
int y) |
int |
getLowestTileX() |
int |
getLowestTileY() |
java.util.Set<java.awt.Point> |
getTileCoords() |
public ScalingHelper(java.util.Map<java.awt.Point,Tile> tiles, TileFactory tileFactory, float scale)
ScalingHelper
for scaling a loose collection of Tile
s.public Tile createScaledTile(int tileX, int tileY)
public java.util.Set<Tile> getAllScaledTiles(org.pepsoft.util.ProgressReceiver progressReceiver) throws org.pepsoft.util.ProgressReceiver.OperationCancelled
org.pepsoft.util.ProgressReceiver.OperationCancelled
public int getLowestTileX()
public int getLowestTileY()
public int getHighestTileX()
public int getHighestTileY()
public java.util.Set<java.awt.Point> getTileCoords()
public float getHeightAt(int x, int y)
public int getLayerValueAt(Layer layer, int x, int y)
public boolean getBitLayerValueAt(Layer layer, int x, int y)