Introducing adventures.

This commit is contained in:
marcins78
2014-07-25 13:49:39 +00:00
parent a667af5a46
commit 46d64f1dea
3 changed files with 19 additions and 5 deletions

View File

@@ -12,7 +12,9 @@ import java.util.Set;
public interface Adventure {
public void applyAdventureRules(LotroGame game, DefaultActionsEnvironment actionsEnvironment, ModifiersLogic modifiersLogic);
GameProcess getStartingGameProcess(Set<String> players, PlayerOrderFeedback playerOrderFeedback);
public GameProcess getStartingGameProcess(Set<String> players, PlayerOrderFeedback playerOrderFeedback);
public GameProcess getAfterFellowshipPhaseGameProcess();
public void appendNextSiteAction(SystemQueueAction action);
@@ -20,9 +22,9 @@ public interface Adventure {
public GameProcess getAfterFellowshipAssignmentGameProcess(Set<PhysicalCard> leftoverMinions, GameProcess followingProcess);
GameProcess getBeforeFellowshipChooseToMoveGameProcess(GameProcess followingProcess);
public GameProcess getBeforeFellowshipChooseToMoveGameProcess(GameProcess followingProcess);
GameProcess getPlayerStaysGameProcess(LotroGame game, GameProcess followingProcess);
public GameProcess getPlayerStaysGameProcess(LotroGame game, GameProcess followingProcess);
GameProcess getAfterFellowshipPhaseGameProcess();
public boolean isSolo();
}

View File

@@ -93,4 +93,9 @@ public class DefaultAdventure implements Adventure {
public GameProcess getStartingGameProcess(Set<String> players, PlayerOrderFeedback playerOrderFeedback) {
return new BiddingGameProcess(players, playerOrderFeedback);
}
@Override
public boolean isSolo() {
return false;
}
}

View File

@@ -6,7 +6,13 @@ import com.gempukku.lotro.game.LotroFormat;
import com.gempukku.lotro.game.LotroGameParticipant;
import com.gempukku.lotro.league.LeagueSerieData;
import java.util.*;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class AwaitingTable {
private CollectionType _collectionType;
@@ -22,6 +28,7 @@ public class AwaitingTable {
_collectionType = collectionType;
_league = league;
_leagueSerie = leagueSerie;
_capacity = lotroFormat.getAdventure().isSolo() ? 1 : 2;
}
public boolean addPlayer(LotroGameParticipant player) {