|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.server.UTServerInfoSnapshot
public class UTServerInfoSnapshot
WARNING ... clone() produce shallow copy!
Field Summary | |
---|---|
protected boolean |
automaticallyReconnect
Whether to automatically reconnect to the server if down. |
protected int |
autoReconnectMillis
How often we should try the reconnect. |
protected java.util.List<Agent> |
bots
List of bots all bots, that were or are connected to server. |
protected java.net.URI |
gamebotsBotsURI
Server URI where we want to connect to. |
protected java.net.URI |
gamebotsControlConnectionURI
Server URI where we want to connect to. |
protected GameInfo |
gameInfo
Here are stored all the info about the server we need to know and manage. |
protected java.util.Map<java.lang.String,Item> |
inventory
List of inventory that is available in the map and can be added to the bot's inventory. |
protected java.util.List<Item> |
items
Current list of items in the map. |
protected java.util.List<UTMap> |
maps
Current list of maps available on server. |
protected java.lang.String |
name
Name of the server. |
protected java.util.List<NavPoint> |
navPoints
Current list of navpoints in the map. |
protected boolean |
pingPong
Whether to test actively the connection for being alive. |
protected java.util.Set<Player> |
players
Current list of all players walking in the world of UT. |
protected int |
pongTimeoutMillis
How long we should wait for PONG message before assuming the communication as dead. |
protected boolean |
serverOpened
Does this server allow connection of new bots? |
protected java.net.URI |
serverRemoteParserURI
URI of remote parser associated with this UT server. |
protected Flag<UTServerState> |
serverStateFlag
This is class where we maintiain the state of the server, e.g. |
Constructor Summary | |
---|---|
UTServerInfoSnapshot()
Calls pseudoconstructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
getAutoReconnectMillis()
|
java.util.List<Agent> |
getBots()
|
java.net.URI |
getGamebotsBotsURI()
|
java.net.URI |
getGamebotsControlConnectionURI()
|
GameInfo |
getGameInfo()
|
java.util.Map<java.lang.String,Item> |
getInventory()
|
java.util.List<Item> |
getItems()
|
java.util.List<UTMap> |
getMaps()
|
java.lang.String |
getName()
|
java.util.List<NavPoint> |
getNavPoints()
|
java.util.Set<Player> |
getPlayers()
|
int |
getPongTimeoutMillis()
|
java.net.URI |
getServerRemoteParserURI()
|
UTServerState |
getServerState()
|
Flag<UTServerState> |
getServerStateFlag()
|
protected void |
init()
Pseudoconstructor called after deserialization. |
boolean |
isAutomaticallyReconnect()
|
boolean |
isPingPong()
|
boolean |
isServerOpened()
|
private void |
readObject(java.io.ObjectInputStream in)
Deserialization... |
private void |
writeObject(java.io.ObjectOutputStream out)
Serialization... |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Flag<UTServerState> serverStateFlag
protected boolean pingPong
protected int pongTimeoutMillis
protected boolean automaticallyReconnect
protected int autoReconnectMillis
protected java.net.URI gamebotsControlConnectionURI
protected java.net.URI gamebotsBotsURI
protected java.net.URI serverRemoteParserURI
protected boolean serverOpened
protected java.lang.String name
protected transient java.util.List<Agent> bots
protected transient GameInfo gameInfo
protected transient java.util.List<NavPoint> navPoints
protected transient java.util.List<Item> items
protected transient java.util.List<UTMap> maps
protected transient java.util.Set<Player> players
protected transient java.util.Map<java.lang.String,Item> inventory
Constructor Detail |
---|
public UTServerInfoSnapshot()
Method Detail |
---|
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
-
java.io.IOException
java.lang.ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
out
-
java.io.IOException
protected void init()
public boolean isAutomaticallyReconnect()
public int getAutoReconnectMillis()
public java.util.List<Agent> getBots()
public GameInfo getGameInfo()
public java.util.List<Item> getItems()
public java.util.List<UTMap> getMaps()
public java.lang.String getName()
public java.util.List<NavPoint> getNavPoints()
public boolean isPingPong()
public java.util.Set<Player> getPlayers()
public int getPongTimeoutMillis()
public boolean isServerOpened()
public java.net.URI getServerRemoteParserURI()
public java.net.URI getGamebotsControlConnectionURI()
public java.net.URI getGamebotsBotsURI()
public java.lang.Object clone()
clone
in class java.lang.Object
public Flag<UTServerState> getServerStateFlag()
public UTServerState getServerState()
public java.util.Map<java.lang.String,Item> getInventory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |