net.sf.colossus.server
Class GameServerSideTestAccess
java.lang.Object
net.sf.colossus.game.Game
net.sf.colossus.server.GameServerSide
net.sf.colossus.server.GameServerSideTestAccess
public class GameServerSideTestAccess
- extends GameServerSide
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, 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 |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
private static final java.util.logging.Logger LOGGER
localClients
private final java.util.HashMap<java.lang.String,Client> localClients
lastGame
private static GameServerSideTestAccess lastGame
gameUpMutex
private final java.lang.Object gameUpMutex
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
storeLocalClient
protected void storeLocalClient(java.lang.String playerName,
Client c)
- Overrides:
storeLocalClient
in class GameServerSide
showLocalClients
public void showLocalClients()
getClientForName
public Client getClientForName(java.lang.String name)
getLastGame
public static GameServerSideTestAccess getLastGame()
clearLastGame
public static void clearLastGame()
notifyTestCaseGameIsUpNow
protected void notifyTestCaseGameIsUpNow()
- Overrides:
notifyTestCaseGameIsUpNow
in class GameServerSide
staticWaitThatGameComesUp
public static GameServerSideTestAccess staticWaitThatGameComesUp()
waitThatGameComesUp
public void waitThatGameComesUp()
waitThatGameIsCompleted
public void waitThatGameIsCompleted()