Make runAsAi private

This commit is contained in:
drdev
2013-12-05 00:14:06 +00:00
parent 1661228168
commit 937a095209

View File

@@ -49,11 +49,6 @@ public abstract class InputPayMana extends InputSyncronizedBase {
this.game = player.getGame();
this.saPaidFor = saToPayFor;
}
public void runAsAi(Runnable proc) {
this.player.runWithController(proc, new PlayerControllerAi(this.game, this.player, this.player.getOriginalLobbyPlayer()));
}
@Override
protected void onCardSelected(final Card card, final MouseEvent triggerEvent) {
@@ -284,6 +279,10 @@ public abstract class InputPayMana extends InputSyncronizedBase {
return true;
}
private void runAsAi(Runnable proc) {
this.player.runWithController(proc, new PlayerControllerAi(this.game, this.player, this.player.getOriginalLobbyPlayer()));
}
/** {@inheritDoc} */
@Override
protected void onOk() {