public class GameServerSideTestAccess extends GameServerSide
GameServerSide.GamePhaseAdvancer
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
gameUpMutex |
private static GameServerSideTestAccess |
lastGame |
private java.util.HashMap<java.lang.String,Client> |
localClients |
private static java.util.logging.Logger |
LOGGER |
serverGotAll, waitForClientsMutex
battle, phase, players, turnNumber
Constructor and Description |
---|
GameServerSideTestAccess(WhatNextManager whatNextMgr,
Options serverOptions,
Variant variant)
The normal constructor to be used everywhere
|
Modifier and Type | Method and Description |
---|---|
static void |
clearLastGame() |
Client |
getClientForName(java.lang.String name) |
static GameServerSideTestAccess |
getLastGame() |
protected void |
notifyTestCaseGameIsUpNow() |
void |
showLocalClients() |
static GameServerSideTestAccess |
staticWaitThatGameComesUp() |
protected void |
storeLocalClient(java.lang.String playerName,
Client c) |
void |
waitThatGameComesUp() |
void |
waitThatGameIsCompleted() |
acquireMaybe, actOnWaitForClientsCompleted, addCreatureEvent, advancePhase, askAcquireAngel, assignColor, autoSave, checkForVictory, concede, createAndAddPlayer, createBattle, createLocalClients, createSummonAngel, dispose, doMove, doneAcquiringAngels, doneReinforcing, doNotConcede, doNotFlee, doRecruit, doSplit, doSummon, editModeAddCreature, editModeRelocateLegion, editModeRemoveCreature, engage, fight, findEligibleRecruits, findNetworkPlayer, finishBattle, flee, gameShouldContinue, getActivePlayer, getActivePlayerNum, getBalancedTowers, getBattleSS, getBattleStrikeSS, getHistory, getHostingPlayer, getIntOption, getLegionByMarkerId, getMovementRoll, getNextColorPicker, getNotifyWebServer, getOption, getOptions, getPlayerByMarkerId, getPlayerByName, getPlayerByNameIgnoreNull, getPlayerByShortColor, getServer, getUniqueName, handlePlayerWithdrawal, hasConventionalMove, isBattleInProgress, isLoadingGame, isReplayOngoing, kickstartGame, legionMoveEvent, legionUndoMoveEvent, loadGame, loadGame2, loadGameAndWaitUntilOver, makeNewGameServerSide, makeProposal, mergeEvent, movementRollEvent, mulligan, newGame, newGame2, newGameServerSide, nextPickColor, playerElimEvent, recruitEvent, reinforce, removeCreatureEvent, revealEvent, saveGameWithErrorHandling, setFlagFilename, setGameOver, splitEvent, startNewGameAndWaitUntilOver, stopAllDueToFunctionalTestCompleted, undoMove, undoRecruitEvent, waitUntilGameFinishes
addPlayer, clearEngagementData, containsOpposingLegions, createEngagement, findEngagements, findLegionsWithSummonables, getAllLegions, getAttacker, getBattle, getBattleActiveLegion, getBattleSite, getBattleStrike, getBattleTurnNumber, getCaretaker, getDefender, getEnemyLegions, getEnemyLegions, getEngagement, getFirstEnemyLegion, getFirstFriendlyLegion, getFirstLegion, getFriendlyLegions, getGameOverMessage, getLegionsByHex, getNumEnemyLegions, getNumFriendlyLegions, getNumHumansRemaining, getNumLegions, getNumLivingCreatures, getNumLivingPlayers, getNumPlayers, getNumRemoteRemaining, getPhase, getPlayers, getPreliminaryPlayerNames, getTurnNumber, getVariant, isEngagementInProgress, isEngagementOngoing, isGameOver, isOccupied, isPhase, onlyAIsRemain, setMovementRoll, setPhase, setTurnNumber
private static final java.util.logging.Logger LOGGER
private final java.util.HashMap<java.lang.String,Client> localClients
private static GameServerSideTestAccess lastGame
private final java.lang.Object gameUpMutex
public GameServerSideTestAccess(WhatNextManager whatNextMgr, Options serverOptions, Variant variant)
whatNextMgr
- A WhatNextManager object which manages the main
control flow which thing to do 'next' when this game is over.serverOptions
- The server side options, initialized from the
GetPlayers dialog and/or command line options.variant
- Variant of this gameprotected void storeLocalClient(java.lang.String playerName, Client c)
storeLocalClient
in class GameServerSide
public void showLocalClients()
public Client getClientForName(java.lang.String name)
public static GameServerSideTestAccess getLastGame()
public static void clearLastGame()
protected void notifyTestCaseGameIsUpNow()
notifyTestCaseGameIsUpNow
in class GameServerSide
public static GameServerSideTestAccess staticWaitThatGameComesUp()
public void waitThatGameComesUp()
public void waitThatGameIsCompleted()