private void moveLeft(Zone currentZone) { currentZone.getZoneTileMap().getTile(y, x, bottomLevel).freeTile(); currentZone.getZoneTileMap().getTile(y, x - 1, bottomLevel).fillTile(this); currentZone.getZoneTileMap().getTile(y - 1, x, bottomLevel + 1).freeTile(); currentZone.getZoneTileMap().getTile(y - 1, x - 1, bottomLevel + 1).insertObject(this); x--; }
private void moveDown(Zone currentZone) { currentZone.getZoneTileMap().getTile(y, x, bottomLevel).freeTile(); currentZone.getZoneTileMap().getTile(y + 1, x, bottomLevel).fillTile(this); currentZone.getZoneTileMap().getTile(y - 1, x, bottomLevel + 1).freeTile(); currentZone.getZoneTileMap().getTile(y, x, bottomLevel + 1).insertObject(this); y++; }