Super IA #5
@@ -68,6 +68,12 @@ public class GameSimulation extends GameAdaptator {
|
|||||||
sendCommand(new NewGameCommand());
|
sendCommand(new NewGameCommand());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPlayerTurn(Color color, boolean undone) {
|
||||||
|
if (undone)
|
||||||
|
sendCommand(new UndoCommand());
|
||||||
|
}
|
||||||
|
|
||||||
public CommandExecutor getCommandExecutor() {
|
public CommandExecutor getCommandExecutor() {
|
||||||
return simulation;
|
return simulation;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user