Mulligan prompt now informs user whose turn it is:

"You're going first. Do you want to mulligan?"
This commit is contained in:
Doublestrike
2012-09-28 06:40:53 +00:00
parent 6271207087
commit ffb8c78e60
2 changed files with 6 additions and 3 deletions

View File

@@ -63,7 +63,11 @@ public class InputMulligan extends Input {
ButtonUtil.enableAll();
VMatchUI.SINGLETON_INSTANCE.getBtnOK().setText("No");
VMatchUI.SINGLETON_INSTANCE.getBtnCancel().setText("Yes");
CMatchUI.SINGLETON_INSTANCE.showMessage("Do you want to Mulligan?");
final String str =
(Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn().equals(AllZone.getHumanPlayer())
? "You're going first. " : "The computer is going first. ");
CMatchUI.SINGLETON_INSTANCE.showMessage(str + "Do you want to Mulligan?");
}
/** {@inheritDoc} */

View File

@@ -86,8 +86,7 @@ public enum FModel {
private final IStorageView<CardBlock> blocks;
private final IStorageView<CardBlock> fantasyBlocks;
// have to implement lazy initialization - at the moment of FModel.ctor()
// CardDb is not ready yet.
// Lazy, since CardDb not ready.
private CardCollections decks;
/**