mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Further updates to Quest Draft Tournament support in mobile Forge, it should now be kind of possible to complete a QDT, at least in "Simulate AI vs. AI Results" mode, with a couple caveats and issues. Work is ongoing.
This commit is contained in:
@@ -38,7 +38,7 @@ import forge.toolbox.FEvent.FEventHandler;
|
|||||||
*/
|
*/
|
||||||
public class QuestDraftWinLose extends ControlWinLose {
|
public class QuestDraftWinLose extends ControlWinLose {
|
||||||
private final transient ViewWinLose view;
|
private final transient ViewWinLose view;
|
||||||
private final QuestWinLoseController controller;
|
private final ControlWinLose controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiates a new quest win lose handler.
|
* Instantiates a new quest win lose handler.
|
||||||
@@ -46,8 +46,17 @@ public class QuestDraftWinLose extends ControlWinLose {
|
|||||||
public QuestDraftWinLose(final ViewWinLose view0, final GameView game0) {
|
public QuestDraftWinLose(final ViewWinLose view0, final GameView game0) {
|
||||||
super(view0, game0);
|
super(view0, game0);
|
||||||
this.view = view0;
|
this.view = view0;
|
||||||
controller = new QuestWinLoseController(game0, view0);
|
controller = new ControlWinLose(view0, game0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void actionOnQuit() {
|
||||||
|
controller.actionOnQuit();
|
||||||
|
super.actionOnQuit();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void showRewards(){
|
||||||
final QuestController quest = FModel.getQuest();
|
final QuestController quest = FModel.getQuest();
|
||||||
final boolean gameHadHumanPlayer = MatchController.instance.hasLocalPlayers();
|
final boolean gameHadHumanPlayer = MatchController.instance.hasLocalPlayers();
|
||||||
|
|
||||||
@@ -117,11 +126,5 @@ public class QuestDraftWinLose extends ControlWinLose {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public final void actionOnQuit() {
|
|
||||||
controller.actionOnQuit();
|
|
||||||
super.actionOnQuit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user