implemented PlayerBase.pickZPM() (former pickItem()) callback method
This commit is contained in:
@ -6,8 +6,7 @@ public class PlayerBase implements Destroyable{
|
||||
protected Direction facingDirection;
|
||||
|
||||
|
||||
public void destroy() {
|
||||
}
|
||||
public void destroy() {}
|
||||
|
||||
public Tile getCurrentTile() {
|
||||
return currentTile;
|
||||
@ -20,10 +19,12 @@ public class PlayerBase implements Destroyable{
|
||||
public void move(Direction direction) {
|
||||
this.setFacingDirection(direction);
|
||||
Tile tile = this.getCurrentTile().getAdjacentTile(direction);
|
||||
tile.onEntry();
|
||||
tile.onEntry(this);
|
||||
setCurrentTile(tile);
|
||||
}
|
||||
|
||||
public void pickZPM(Tile tile) { /* PlayerBase does not collect ZPM modules */ }
|
||||
|
||||
public void rotateLeft() {
|
||||
switch (facingDirection) {
|
||||
case NORTH:
|
||||
|
Reference in New Issue
Block a user