Changing texts for playing phase actions.

This commit is contained in:
marcins78@gmail.com
2011-12-02 13:07:27 +00:00
parent f2ecf5d79e
commit 52af9930a3
3 changed files with 13 additions and 3 deletions

View File

@@ -1,5 +1,15 @@
package com.gempukku.lotro.common;
public enum Phase {
PUT_RING_BEARER, PLAY_STARTING_FELLOWSHIP, FELLOWSHIP, SHADOW, MANEUVER, ARCHERY, ASSIGNMENT, SKIRMISH, REGROUP, BETWEEN_TURNS
PUT_RING_BEARER(null), PLAY_STARTING_FELLOWSHIP(null), FELLOWSHIP("Fellowship"), SHADOW("Shadow"), MANEUVER("Maneuver"), ARCHERY("Archery"), ASSIGNMENT("Assignment"), SKIRMISH("Skirmish"), REGROUP("Regroup"), BETWEEN_TURNS(null);
private String _humanReadable;
private Phase(String humanReadable) {
_humanReadable = humanReadable;
}
public String getHumanReadable() {
return _humanReadable;
}
}

View File

@@ -24,7 +24,7 @@ public class PlayerPlaysPhaseActionsUntilPassesGameProcess implements GameProces
final List<Action> playableActions = game.getActionsEnvironment().getPhaseActions(_playerId);
game.getUserFeedback().sendAwaitingDecision(_playerId,
new CardActionSelectionDecision(game, 1, "Choose action to play or Pass", playableActions) {
new CardActionSelectionDecision(game, 1, "Play " + game.getGameState().getCurrentPhase().getHumanReadable() + " action or Pass", playableActions) {
@Override
public void decisionMade(String result) throws DecisionResultInvalidException {
Action action = getSelectedAction(result);

View File

@@ -44,7 +44,7 @@ public class PlayersPlayPhaseActionsInOrderGameProcess implements GameProcess {
final List<Action> playableActions = game.getActionsEnvironment().getPhaseActions(playerId);
game.getUserFeedback().sendAwaitingDecision(playerId,
new CardActionSelectionDecision(game, 1, "Choose action to play or Pass", playableActions) {
new CardActionSelectionDecision(game, 1, "Play " + game.getGameState().getCurrentPhase().getHumanReadable() + " action or Pass", playableActions) {
@Override
public void decisionMade(String result) throws DecisionResultInvalidException {
Action action = getSelectedAction(result);