|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.utils.UCCWrapperConf
public class UCCWrapperConf
Configuration object of the UCC wrapper instance.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
UCCWrapperConf()
|
|
UCCWrapperConf(UCCWrapperConf uccConf)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public UCCWrapperConf()
public UCCWrapperConf(UCCWrapperConf uccConf)
| Method Detail |
|---|
public int getPlayerPort()
public void setPlayerPort(int playerPort)
public String toString()
toString in class Objectpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||