added testField as a temporary measure

this field can be set as all adjacentFields in the skeleton
This commit is contained in:
Bokros Bálint 2016-03-29 10:44:39 +02:00 committed by Kjistóf
parent 15c9306d95
commit 59d03d193f

View File

@ -1,7 +1,21 @@
package cicaprojekt; package cicaprojekt;
import java.util.HashMap;
public class Field extends cicaprojekt.Tile public class Field extends cicaprojekt.Tile
{ {
public static Field testField;
public Field() {
setItemOnTile(new Box());
adjacentTile = new HashMap<Direction, Tile>();
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 @Override
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
Menu.addTab(); Menu.addTab();