|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.barkerjr.gameserver.Base
net.barkerjr.gameserver.GameServer
net.barkerjr.gameserver.dice.BattlefieldBadCompany2Server
public class BattlefieldBadCompany2Server
Provides parsing and querying for Battlefield: Bad Company servers
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.barkerjr.gameserver.GameServer |
|---|
GameServer.Dedicated, GameServer.Request, GameServer.RequestTimeoutException |
| Field Summary |
|---|
| Fields inherited from class net.barkerjr.gameserver.GameServer |
|---|
address, botCount, dedicated, gameDirectory, IPTOS_RELIABILITY, map, maximumPlayers, name, namespace, numberOfPlayers, passwordRequired, players, plugins, rules, updated, version |
| Fields inherited from class net.barkerjr.gameserver.Base |
|---|
listeners |
| Constructor Summary | |
|---|---|
BattlefieldBadCompany2Server(InetSocketAddress address)
Deprecated. since 2010-03-23, use BattlefieldBadCompany2Server(InetSocketAddress, int) |
|
BattlefieldBadCompany2Server(InetSocketAddress address,
int queryPort)
Sets up the basic server information and DOM |
|
| Method Summary | |
|---|---|
void |
close()
|
String |
getGameMode()
Provides the game mode |
int |
getQueryPort()
Provides the query port |
void |
load(GameServer.Request... requests)
Supports: Request.INFORMATION Loads the given requests asynchronously |
JSONObject |
toJsonObject()
Deprecated. since 2010-03-23, use JSON.toJSON(GameServer) |
| Methods inherited from class net.barkerjr.gameserver.GameServer |
|---|
addPlugin, equals, fireChangeEvent, fireLoadEvent, getBotCount, getDedicated, getGameDirectory, getIP, getMap, getMaximumPlayers, getName, getNumberOfPlayers, getPlayers, getPlugins, getPort, getRules, getUpdated, getVersion, handleError, hashCode, isPasswordRequired, load, replaceChild, toString, toXmlDocument |
| Methods inherited from class net.barkerjr.gameserver.Base |
|---|
addListener, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public BattlefieldBadCompany2Server(InetSocketAddress address)
BattlefieldBadCompany2Server(InetSocketAddress, int)
address - the address of the server. The port is usually the
server port plus 29321.
public BattlefieldBadCompany2Server(InetSocketAddress address,
int queryPort)
address - the address of the serverqueryPort - the port to query the server| Method Detail |
|---|
public void load(GameServer.Request... requests)
throws IOException
load in class GameServerrequests - the requests to load
IOException - if there was an error sending or receiving the datapublic String getGameMode()
public int getQueryPort()
@Deprecated
public JSONObject toJsonObject()
throws JSONException
JSON.toJSON(GameServer)
GameServer
toJsonObject in class GameServerJSONException - if an error occurspublic void close()
close in interface Closeable
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||