Package net.sf.colossus.server
Class GameServerSideTestAccess
java.lang.Object
net.sf.colossus.game.Game
net.sf.colossus.server.GameServerSide
net.sf.colossus.server.GameServerSideTestAccess
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.colossus.server.GameServerSide
GameServerSide.GamePhaseAdvancer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object
private static GameServerSideTestAccess
private static final Logger
Fields inherited from class net.sf.colossus.server.GameServerSide
serverGotAll, waitForClientsMutex
Fields inherited from class net.sf.colossus.game.Game
battle, phase, players, turnNumber
-
Constructor Summary
ConstructorsConstructorDescriptionGameServerSideTestAccess
(WhatNextManager whatNextMgr, Options serverOptions, Variant variant) The normal constructor to be used everywhere -
Method Summary
Modifier and TypeMethodDescriptionstatic void
getClientForName
(String name) static GameServerSideTestAccess
protected void
void
static GameServerSideTestAccess
protected void
storeLocalClient
(String playerName, Client c) void
void
Methods inherited from class net.sf.colossus.server.GameServerSide
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, getIscMessageFile, 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, updateCaretakerDisplays, waitUntilGameFinishes
Methods inherited from class net.sf.colossus.game.Game
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
-
Field Details
-
LOGGER
-
localClients
-
lastGame
-
gameUpMutex
-
-
Constructor Details
-
GameServerSideTestAccess
public GameServerSideTestAccess(WhatNextManager whatNextMgr, Options serverOptions, Variant variant) The normal constructor to be used everywhere- Parameters:
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 game
-
-
Method Details
-
storeLocalClient
- Overrides:
storeLocalClient
in classGameServerSide
-
showLocalClients
public void showLocalClients() -
getClientForName
-
getLastGame
-
clearLastGame
public static void clearLastGame() -
notifyTestCaseGameIsUpNow
protected void notifyTestCaseGameIsUpNow()- Overrides:
notifyTestCaseGameIsUpNow
in classGameServerSide
-
staticWaitThatGameComesUp
-
waitThatGameComesUp
public void waitThatGameComesUp() -
waitThatGameIsCompleted
public void waitThatGameIsCompleted()
-