From 59d03d193f49968bdbf2ca72f9b4020075570c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Tue, 29 Mar 2016 10:44:39 +0200 Subject: [PATCH] added testField as a temporary measure this field can be set as all adjacentFields in the skeleton --- cicaprojekt/Field.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cicaprojekt/Field.java b/cicaprojekt/Field.java index 4ba8484..6e9eb75 100644 --- a/cicaprojekt/Field.java +++ b/cicaprojekt/Field.java @@ -1,7 +1,21 @@ package cicaprojekt; +import java.util.HashMap; + public class Field extends cicaprojekt.Tile { + public static Field testField; + + public Field() { + setItemOnTile(new Box()); + + adjacentTile = new HashMap(); + adjacentTile.put(Direction.NORTH, Field.testField); + adjacentTile.put(Direction.EAST, Field.testField); + adjacentTile.put(Direction.SOUTH, Field.testField); + adjacentTile.put(Direction.WEST, Field.testField); + } + @Override public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { Menu.addTab();