added testField as a temporary measure
this field can be set as all adjacentFields in the skeleton
This commit is contained in:
parent
15c9306d95
commit
59d03d193f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user