now Gaps that are converted to Fields show up correctly

This commit is contained in:
2016-05-13 23:17:42 +02:00
parent 46ecc68500
commit 7d059701cc
3 changed files with 21 additions and 0 deletions

View File

@ -25,6 +25,9 @@ public class Game {
Field field = new Field();
Tile callertile = caller.getCurrentTile();
field.setX(callertile.getX());
field.setY(callertile.getY());
field.setAdajacentTile(caller.getCurrentTile().getAdjacentTile(Direction.NORTH), Direction.NORTH);
callertile.getAdjacentTile(Direction.NORTH).setAdajacentTile(field, Direction.SOUTH);
@ -37,6 +40,8 @@ public class Game {
field.setAdajacentTile(caller.getCurrentTile().getAdjacentTile(Direction.EAST), Direction.EAST);
callertile.getAdjacentTile(Direction.EAST).setAdajacentTile(field, Direction.WEST);
display.gapMagic((Gap)callertile, field, dungeon.getMapWidth());
Game.instance.updateDisplay();
}