31 lines
642 B
Java
31 lines
642 B
Java
package cicaprojekt;
|
|
|
|
public class Field extends cicaprojekt.Tile {
|
|
public Field() {
|
|
super();
|
|
}
|
|
|
|
@Override
|
|
public boolean isSteppable() {
|
|
return boxStack.isEmpty();
|
|
}
|
|
|
|
@Override
|
|
public void onEntry(PlayerBase playerBase) {
|
|
super.onEntry(playerBase);
|
|
if (boxStack.size() > 0)
|
|
return;
|
|
playerBase.setCurrentTile(this);
|
|
if (zpmOnTile != null)
|
|
playerBase.pickZPM(this);
|
|
}
|
|
|
|
@Override
|
|
public void onExit(PlayerBase playerBase) {}
|
|
|
|
@Override
|
|
public boolean canHazZPM() {
|
|
return true;
|
|
}
|
|
}
|