private void draw() { this.image.clear(); if (this.viewport == null || zones == null) return; for (Zone zone : zones) { // Zones only have ONE animation currently so no need to check the type int diff = 1; if (zone.zone() == Stadium.TYPE_ID) { diff = 2; } this.image.drawImage( AnimationLayer.NOPOWER_IMG, (((zone.origin().x + diff) * Tile.SIZE) - viewport.x), (((zone.origin().y - diff) * Tile.SIZE) - viewport.y)); } /* for (Iterator it = tiles.keySet().iterator(); it.hasNext();) { Tile tile = (Tile)it.next(); this.image.drawImage(tile.nextFrame(), ((tile.position().x * Tile.SIZE) - viewport.x), ((tile.position().y * Tile.SIZE) - viewport.y)); } */ needsUpdate = false; }