this.mapWidth = tileWidth.multiply(tileNumberX);
this.mapHeight = tileHeight.multiply(tileNumberY);
}
public void render(Graphics g) throws SlickException {
TiledMap map = GameData.getCurrentMap();
BigDecimal scaleX = WIDTH.divide(this.mapWidth);
BigDecimal scaleY = HEIGHT.divide(this.mapHeight);
Color lastColor = g.getColor();
g.scale(scaleX.floatValue(), scaleY.floatValue());
BigDecimal scaledX = this.x.multiply(this.mapWidth).divide(WIDTH, 0);
BigDecimal scaledY = this.y.multiply(this.mapHeight).divide(HEIGHT, 0);
map.render(scaledX.intValue(), scaledY.intValue(),
TileHelper.DECO_LAYER);
// Rendering of buildings representations (squares of the caregory
// color)
List<Building> buildings = GameData.getSelectedColony().getBuildings();