add option to be alerted on receipt of priority

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
Jamin W. Collins
2018-02-24 10:51:43 -07:00
parent 4d41ed60c9
commit fd35c8d862
11 changed files with 38 additions and 3 deletions

View File

@@ -37,6 +37,7 @@ public interface IGuiGame {
void updateButtons(PlayerView owner, boolean okEnabled, boolean cancelEnabled, boolean focusOk);
void updateButtons(PlayerView owner, String label1, String label2, boolean enable1, boolean enable2, boolean focus1);
void flashIncorrectAction();
void alertUser();
void updatePhase();
void updateTurn(PlayerView player);
void updatePlayerControl();

View File

@@ -60,6 +60,8 @@ public class InputPassPriority extends InputSyncronizedBase {
else { //otherwise allow ending turn with cancel button
getController().getGui().updateButtons(getOwner(), "OK", "End Turn", true, true, true);
}
getController().getGui().alertUser();
}
/** {@inheritDoc} */

View File

@@ -35,6 +35,7 @@ public enum ProtocolMethod {
showPromptMessage (Mode.SERVER, Void.TYPE, PlayerView.class, String.class),
updateButtons (Mode.SERVER, Void.TYPE, PlayerView.class, String.class, String.class, Boolean.TYPE, Boolean.TYPE, Boolean.TYPE),
flashIncorrectAction(Mode.SERVER),
alertUser (Mode.SERVER),
updatePhase (Mode.SERVER),
updateTurn (Mode.SERVER, Void.TYPE, PlayerView.class),
updatePlayerControl (Mode.SERVER),

View File

@@ -89,6 +89,9 @@ public class NetGuiGame extends AbstractGuiGame {
send(ProtocolMethod.flashIncorrectAction);
}
@Override
public void alertUser() { send(ProtocolMethod.alertUser); }
@Override
public void updatePhase() {
updateGameView();

View File

@@ -91,6 +91,7 @@ public class ForgePreferences extends PreferencesStore<ForgePreferences.FPref> {
UI_PRESELECT_PREVIOUS_ABILITY_ORDER ("false"),
UI_AUTO_YIELD_MODE (ForgeConstants.AUTO_YIELD_PER_ABILITY),
UI_SHOW_STORM_COUNT_IN_PROMPT ("false"),
UI_REMIND_ON_PRIORITY ("false"),
UI_CARD_COUNTER_DISPLAY_TYPE(ForgeConstants.CounterDisplayType.TEXT.getName()),
UI_CARD_COUNTER_DISPLAY_LOCATION(ForgeConstants.CounterDisplayLocation.TOP.getName()),
UI_ANDROID_MINIMIZE_ON_SCRLOCK("false"),