Abstract class finished
Method-calling texts were removed and methods were implemented.
This commit is contained in:
parent
13a8adec82
commit
6b11456b7a
@ -23,6 +23,7 @@ public abstract class Tile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setAdajacentTile(Tile newTile, Direction direction) {
|
public void setAdajacentTile(Tile newTile, Direction direction) {
|
||||||
|
adjacentTile.put(direction, newTile);
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void spawnStargate(Stargate stargate, Direction direction);
|
public abstract void spawnStargate(Stargate stargate, Direction direction);
|
||||||
@ -33,10 +34,11 @@ public abstract class Tile {
|
|||||||
|
|
||||||
public Pickable removeItemFromTile() {
|
public Pickable removeItemFromTile() {
|
||||||
Pickable item = itemOnTile;
|
Pickable item = itemOnTile;
|
||||||
|
itemOnTile = null;
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setItemOnTile(Pickable item) {
|
public void setItemOnTile(Pickable item) {
|
||||||
itemOnTile = item;
|
itemOnTile = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user