Changing how the turn ends.
This commit is contained in:
@@ -31,9 +31,10 @@ public class PlayerPlaysStartingFellowshipGameProcess implements GameProcess {
|
||||
@Override
|
||||
public void process(LotroGame game) {
|
||||
Collection<PhysicalCard> possibleCharacters = getPossibleCharacters(game, _playerId);
|
||||
if (possibleCharacters.size() == 0)
|
||||
if (possibleCharacters.size() == 0) {
|
||||
game.getGameState().stopAffectingCardsForCurrentPlayer();
|
||||
_nextProcess = _followingGameProcess;
|
||||
else
|
||||
} else
|
||||
game.getUserFeedback().sendAwaitingDecision(_playerId, createChooseNextCharacterDecision(game, _playerId, possibleCharacters));
|
||||
}
|
||||
|
||||
@@ -57,9 +58,10 @@ public class PlayerPlaysStartingFellowshipGameProcess implements GameProcess {
|
||||
@Override
|
||||
public void decisionMade(String result) throws DecisionResultInvalidException {
|
||||
List<PhysicalCard> selectedCharacters = getSelectedCardsByResponse(result);
|
||||
if (selectedCharacters.size() == 0)
|
||||
if (selectedCharacters.size() == 0) {
|
||||
game.getGameState().stopAffectingCardsForCurrentPlayer();
|
||||
_nextProcess = _followingGameProcess;
|
||||
else {
|
||||
} else {
|
||||
PhysicalCard selectedPhysicalCard = selectedCharacters.get(0);
|
||||
Action playCardAction = selectedPhysicalCard.getBlueprint().getPlayCardAction(playerId, game, selectedPhysicalCard, 0, false);
|
||||
game.getActionsEnvironment().addActionToStack(playCardAction);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.gempukku.lotro.logic.timing.processes.turn;
|
||||
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.PlayOrder;
|
||||
import com.gempukku.lotro.logic.timing.processes.GameProcess;
|
||||
@@ -8,9 +7,6 @@ import com.gempukku.lotro.logic.timing.processes.GameProcess;
|
||||
public class BetweenTurnsProcess implements GameProcess {
|
||||
@Override
|
||||
public void process(LotroGame game) {
|
||||
game.getGameState().stopAffectingCardsForCurrentPlayer();
|
||||
game.getGameState().setCurrentPhase(Phase.BETWEEN_TURNS);
|
||||
|
||||
PlayOrder playOrder = game.getGameState().getPlayerOrder().getClockwisePlayOrder(game.getGameState().getCurrentPlayerId(), false);
|
||||
playOrder.getNextPlayer();
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.gempukku.lotro.logic.timing.processes.turn;
|
||||
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.game.state.actions.DefaultActionsEnvironment;
|
||||
import com.gempukku.lotro.logic.actions.SystemQueueAction;
|
||||
@@ -36,6 +37,8 @@ public class EndOfTurnGameProcess implements GameProcess {
|
||||
public void playEffect(LotroGame game) {
|
||||
((ModifiersLogic) game.getModifiersEnvironment()).removeEndOfTurn();
|
||||
((DefaultActionsEnvironment) game.getActionsEnvironment()).removeEndOfTurnActionProxies();
|
||||
game.getGameState().stopAffectingCardsForCurrentPlayer();
|
||||
game.getGameState().setCurrentPhase(Phase.BETWEEN_TURNS);
|
||||
}
|
||||
});
|
||||
game.getActionsEnvironment().addActionToStack(action);
|
||||
|
||||
Reference in New Issue
Block a user