Bugfix: Phase toggle saving fixed.

This commit is contained in:
Doublestrike
2012-02-04 00:28:33 +00:00
parent 0a99ff70e9
commit e9892be831
3 changed files with 6 additions and 1 deletions

View File

@@ -54,7 +54,6 @@ public class ControlDock {
/** Concede game, bring up WinLose UI. */
public void concede() {
AllZone.getDisplay().savePrefs();
AllZone.getHumanPlayer().concede();
AllZone.getGameAction().checkStateEffects();
}

View File

@@ -75,6 +75,7 @@ public class ControlWinLose {
/** Action performed when "quit" button is pressed in default win/lose UI. */
public void actionOnQuit() {
AllZone.getMatchState().reset();
AllZone.getDisplay().savePrefs();
FControl g = ((GuiTopLevel) AllZone.getDisplay()).getController();
g.getMatchController().deinitMatch();
g.changeState(FControl.HOME_SCREEN);
@@ -121,6 +122,7 @@ public class ControlWinLose {
Constant.Runtime.HUMAN_DECK[0] = hDeck;
}
}
AllZone.getDisplay().savePrefs();
AllZone.getGameAction().newGame(Constant.Runtime.HUMAN_DECK[0], Constant.Runtime.COMPUTER_DECK[0]);
}

View File

@@ -116,6 +116,8 @@ public class QuestWinLoseHandler extends ControlWinLose {
*/
@Override
public final void startNextRound() {
AllZone.getDisplay().savePrefs();
if (Constant.Quest.FANTASY_QUEST[0]) {
int extraLife = 0;
@@ -299,6 +301,8 @@ public class QuestWinLoseHandler extends ControlWinLose {
this.model.qData.saveData();
AllZone.getDisplay().savePrefs();
FControl g = ((GuiTopLevel) AllZone.getDisplay()).getController();
g.getMatchController().deinitMatch();
g.changeState(FControl.HOME_SCREEN);