Files
cicaprojekt/cicaprojekt/Field.java
Kjistóf 89a1da497f now "flying" Stargates destroy Replicators, and belonging bugfix
Game.playerBaseDestroyed() is not called everythime a PlayerBase is
destroyed.
2016-05-13 23:52:10 +02:00

32 lines
655 B
Java

package cicaprojekt;
import java.util.HashMap;
import java.util.Map;
public class Field extends cicaprojekt.Tile {
public Field() {
super();
}
@Override
public boolean isSteppable() {
if (boxStack.isEmpty())
return true;
return false;
}
public void onEntry(PlayerBase playerBase) {
super.onEntry(playerBase);
if (boxStack.size() > 0)
return;
playerBase.setCurrentTile(this);
if (zpmOnTile != null)
playerBase.pickZPM(this);
}
public void onExit(PlayerBase playerBase) {
return;
}
}