public class UCCWrapperConf extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
gameBotsPack |
protected String |
gameType |
protected String |
mapName |
protected String |
mutators |
protected String |
options |
protected UCCWrapperPatterns |
patterns |
protected int |
playerPort
Port for human player - UT2004 client uses this port to connect to the server.
|
protected boolean |
startOnUnusedPort |
protected String |
unrealHome |
Constructor and Description |
---|
UCCWrapperConf() |
UCCWrapperConf(UCCWrapperConf uccConf) |
Modifier and Type | Method and Description |
---|---|
String |
getGameBotsPack() |
String |
getGameType() |
Logger |
getLog() |
String |
getMapName() |
String |
getMutators() |
String |
getOptions() |
UCCWrapperPatterns |
getPatterns()
Sets patterns that recognizes UCC output for successful startup.
|
int |
getPlayerPort()
Returns the port for human player - UT2004 client uses this port to connect to the server.
|
String |
getUnrealHome()
Returns Pogamut.getPlatform().getProperty(PogamutUT2004Property.POGAMUT_UNREAL_HOME) if not specified.
|
boolean |
isStartOnUnusedPort() |
UCCWrapperConf |
setGameBotsPack(String gameBotsPack)
Eg.
|
UCCWrapperConf |
setGameType(String gameType)
Eg.
|
void |
setLog(Logger log) |
UCCWrapperConf |
setLogger(Logger log)
Logger used by the UCC.
|
UCCWrapperConf |
setMapName(String mapName) |
void |
setMutators(String mutators) |
UCCWrapperConf |
setOptions(String options)
Can be used for setting mutators etc.
|
void |
setPatterns(UCCWrapperPatterns patterns)
Sets patterns that recognizes UCC output for successful startup.
|
void |
setPlayerPort(int playerPort)
Sets the port for human player - UT2004 client uses this port to connect to the server.
|
UCCWrapperConf |
setStartOnUnusedPort(boolean startOnUnusedPort)
Forces UCC to find free port and start on it, otherwise it will start on ports 3000 + 3001.
|
void |
setUnrealHome(String unrealHome)
Sets path to the UT2004 directory, e.g., 'd:\\games\\ut2004'.
|
String |
toString() |
protected UCCWrapperPatterns patterns
protected String unrealHome
protected String mapName
protected String gameBotsPack
protected String gameType
protected String mutators
protected String options
protected int playerPort
protected boolean startOnUnusedPort
public UCCWrapperConf()
public UCCWrapperConf(UCCWrapperConf uccConf)
public int getPlayerPort()
public void setPlayerPort(int playerPort)
public UCCWrapperPatterns getPatterns()
public void setPatterns(UCCWrapperPatterns patterns)
patterns
- public String getUnrealHome()
public void setUnrealHome(String unrealHome)
Should not need to be set if provided via property file.
unrealHome
- public UCCWrapperConf setStartOnUnusedPort(boolean startOnUnusedPort)
startOnUnusedPort
- public UCCWrapperConf setGameBotsPack(String gameBotsPack)
gameBotsPack
- public UCCWrapperConf setMapName(String mapName)
public UCCWrapperConf setGameType(String gameType)
public UCCWrapperConf setOptions(String options)
options
- public UCCWrapperConf setLogger(Logger log)
log
- public String getMutators()
public void setMutators(String mutators)
public Logger getLog()
public void setLog(Logger log)
public String getMapName()
public String getGameBotsPack()
public String getGameType()
public String getOptions()
public boolean isStartOnUnusedPort()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.