|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.camelspotting.jotl.domain.ServerDetails
public final class ServerDetails
This class is for parsing and holding the information from the server response package.
SendablePacketType
Constructor Summary | |
---|---|
ServerDetails(List<NewGRF> newGRFs,
String serverName,
org.joda.time.LocalDate gameDate,
org.joda.time.LocalDate startDate,
int maxCompanies,
int onCompanies,
int maxSpectators,
int onSpectators,
int maxClients,
int onClients,
String gameVersion,
int serverLang,
boolean passwordProtected,
boolean dedicated,
int tileset,
int mapHeight,
int mapWidth,
String mapName)
|
Method Summary | |
---|---|
org.joda.time.LocalDate |
getGameDate()
Method for getting the current game date so that other formatting may be applied. |
int |
getGraphicsCount()
Getter for the server new graphics count. |
int |
getMapHeight()
Getter for the current map's height. |
String |
getMapName()
Getter for the current map's name |
int |
getMapWidth()
Getter for the current map's width. |
int |
getMaxNumberOfClients()
Getter for maximum number of clients |
int |
getMaxNumberOfCompanies()
Getter for maximum number of companies |
int |
getMaxNumberOfSpectators()
Getter for maximum number of specatators. |
List<NewGRF> |
getNewGRFs()
|
int |
getNumberOfActiveClients()
Getter for the number of active clients. |
int |
getNumberOfActiveCompanies()
Getter for the number of active companies. |
int |
getNumberOfActiveSpectators()
Getter for the number of active spectators. |
int |
getServerLanguage()
Getter for the server's language index. |
String |
getServerLanguageAsString()
Getter for the server's language. |
String |
getServerName()
Getter for the server name. |
org.joda.time.LocalDate |
getStartDate()
Method for getting the start date so that other formatting may be applied. |
int |
getTileset()
Getter for the tileset of the map |
String |
getTilesetAsString()
Getter for the meaning of the tileset integer. |
String |
getVersion()
Getter for the game version. |
int[] |
getVersionComponents()
Getter for game version as components: major.minor.revision |
boolean |
isDedicated()
Method for finding out whether or not the server is running in dedicated mode or if it is participating as a client. |
boolean |
isPasswordProtected()
Method for finding out whether or not the server is password protected. |
String |
toString()
Method for getting a textual representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerDetails(List<NewGRF> newGRFs, String serverName, org.joda.time.LocalDate gameDate, org.joda.time.LocalDate startDate, int maxCompanies, int onCompanies, int maxSpectators, int onSpectators, int maxClients, int onClients, String gameVersion, int serverLang, boolean passwordProtected, boolean dedicated, int tileset, int mapHeight, int mapWidth, String mapName)
Method Detail |
---|
public String getServerName()
public String getVersion()
public int[] getVersionComponents()
public int getGraphicsCount()
public List<NewGRF> getNewGRFs()
public org.joda.time.LocalDate getStartDate()
public org.joda.time.LocalDate getGameDate()
public int getMaxNumberOfCompanies()
public int getNumberOfActiveCompanies()
public int getMaxNumberOfSpectators()
public int getNumberOfActiveSpectators()
public int getMaxNumberOfClients()
public int getNumberOfActiveClients()
public boolean isPasswordProtected()
public int getServerLanguage()
getServerLanguageAsString()
public String getServerLanguageAsString()
public boolean isDedicated()
public String getTilesetAsString()
public int getTileset()
public int getMapWidth()
public int getMapHeight()
public String getMapName()
public String toString()
toString
in class Object
String
containing all data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |