cz.cuni.amis.pogamut.ut2004.utils
Class UCCWrapper.UCCWrapperConf

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper.UCCWrapperConf
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
UCCWrapper

public static class UCCWrapper.UCCWrapperConf
extends java.lang.Object
implements java.io.Serializable

Configuration object of the UCC wrapper instance.

See Also:
Serialized Form

Constructor Summary
UCCWrapper.UCCWrapperConf()
           
UCCWrapper.UCCWrapperConf(UCCWrapper.UCCWrapperConf uccConf)
           
 
Method Summary
 java.lang.String getGameBotsPack()
           
 java.lang.String getGameType()
           
 java.util.logging.Logger getLog()
           
 java.lang.String getMapName()
           
 java.lang.String getMutators()
           
 java.lang.String getOptions()
           
 java.lang.String getUnrealHome()
          Returns Pogamut.getPlatform().getProperty(PogamutUT2004Property.POGAMUT_UNREAL_HOME) if not specified.
 boolean isStartOnUnusedPort()
           
 UCCWrapper.UCCWrapperConf setGameBotsPack(java.lang.String gameBotsPack)
          Eg.
 UCCWrapper.UCCWrapperConf setGameType(java.lang.String gameType)
          Eg.
 void setLog(java.util.logging.Logger log)
           
 UCCWrapper.UCCWrapperConf setLogger(java.util.logging.Logger log)
          Logger used by the UCC.
 UCCWrapper.UCCWrapperConf setMapName(java.lang.String mapName)
           
 void setMutators(java.lang.String mutators)
           
 UCCWrapper.UCCWrapperConf setOptions(java.lang.String options)
          Can be used for setting mutators etc.
 UCCWrapper.UCCWrapperConf setStartOnUnusedPort(boolean startOnUnusedPort)
          Forces UCC to find free port and start on it, otherwise it will start on ports 3000 + 3001.
 void setUnrealHome(java.lang.String unrealHome)
          Sets path to the UT2004 directory, e.g., 'd:\\games\\ut2004'.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UCCWrapper.UCCWrapperConf

public UCCWrapper.UCCWrapperConf()

UCCWrapper.UCCWrapperConf

public UCCWrapper.UCCWrapperConf(UCCWrapper.UCCWrapperConf uccConf)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getUnrealHome

public java.lang.String getUnrealHome()
Returns Pogamut.getPlatform().getProperty(PogamutUT2004Property.POGAMUT_UNREAL_HOME) if not specified.

Returns:

setUnrealHome

public void setUnrealHome(java.lang.String unrealHome)
Sets path to the UT2004 directory, e.g., 'd:\\games\\ut2004'.

Should not need to be set if provided via property file.

Parameters:
unrealHome -

setStartOnUnusedPort

public UCCWrapper.UCCWrapperConf setStartOnUnusedPort(boolean startOnUnusedPort)
Forces UCC to find free port and start on it, otherwise it will start on ports 3000 + 3001.

Parameters:
startOnUnusedPort -

setGameBotsPack

public UCCWrapper.UCCWrapperConf setGameBotsPack(java.lang.String gameBotsPack)
Eg. GameBots2004, GBSceanrio etc.

Parameters:
gameBotsPack -

setMapName

public UCCWrapper.UCCWrapperConf setMapName(java.lang.String mapName)

setGameType

public UCCWrapper.UCCWrapperConf setGameType(java.lang.String gameType)
Eg. BotDeathMatch, BotCTFGame etc. Consult GameBots documentation for complete list available game types.


setOptions

public UCCWrapper.UCCWrapperConf setOptions(java.lang.String options)
Can be used for setting mutators etc.

Parameters:
options -

setLogger

public UCCWrapper.UCCWrapperConf setLogger(java.util.logging.Logger log)
Logger used by the UCC.

Parameters:
log -

getMutators

public java.lang.String getMutators()

setMutators

public void setMutators(java.lang.String mutators)

getLog

public java.util.logging.Logger getLog()

setLog

public void setLog(java.util.logging.Logger log)

getMapName

public java.lang.String getMapName()

getGameBotsPack

public java.lang.String getGameBotsPack()

getGameType

public java.lang.String getGameType()

getOptions

public java.lang.String getOptions()

isStartOnUnusedPort

public boolean isStartOnUnusedPort()