Base files for the project were added. Update ONeill.java Update Box.java fixed everything, code now compiles correctly
18 lines
379 B
Java
18 lines
379 B
Java
package cicaprojekt;
|
|
|
|
public class Scale extends Field {
|
|
private Gate gateConnected;
|
|
|
|
public void onEntry() {
|
|
gateConnected.setOpen(true);
|
|
}
|
|
|
|
public void onExit() {
|
|
gateConnected.setOpen(false);
|
|
}
|
|
|
|
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
|
|
adjacentTile.get(direction).spawnStargate(stargate, direction);
|
|
}
|
|
}
|