net.barkerjr.gameserver.unreal
Class UnrealEngine1Server

java.lang.Object
  extended by net.barkerjr.gameserver.Base
      extended by net.barkerjr.gameserver.GameServer
          extended by net.barkerjr.gameserver.UdpServer
              extended by net.barkerjr.gameserver.gamespy.GameSpyServer
                  extended by net.barkerjr.gameserver.unreal.UnrealEngine1Server
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
UnrealTournamentServer

public class UnrealEngine1Server
extends GameSpyServer

Provides generic parsing and querying for Unreal Engine 1 servers

Since:
2007-11-18
Author:
BarkerJr
See Also:
Specification

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.gamespy.GameSpyServer
location
 
Fields inherited from class net.barkerjr.gameserver.UdpServer
servers
 
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
UnrealEngine1Server(InetSocketAddress address)
          Sets up the basic server information and DOM
 
Method Summary
static UnrealEngine1Server getInstance(InetSocketAddress address)
          Gets or creates an instance of the server at the given address.
 String getMapTitle()
           
 String getMinimumNetworkVersion()
           
protected  GameServer.Request storePair(String key, String value)
          Processes and persists the given key/value pair in the DOM
 JSONObject toJsonObject()
          Deprecated. since 2010-03-23, use JSON.toJSON(GameServer)
 
Methods inherited from class net.barkerjr.gameserver.gamespy.GameSpyServer
getLocation, getLocation, getPlayer, load, parseData
 
Methods inherited from class net.barkerjr.gameserver.UdpServer
close, sendData, sendData
 
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

UnrealEngine1Server

public UnrealEngine1Server(InetSocketAddress address)
Sets up the basic server information and DOM

Parameters:
address - the address of the server
Since:
2007-11-18
Method Detail

getInstance

public static UnrealEngine1Server getInstance(InetSocketAddress address)
Gets or creates an instance of the server at the given address.

Parameters:
address - the address of the server
Returns:
the server
Since:
2007-11-18

storePair

protected GameServer.Request storePair(String key,
                                       String value)
Description copied from class: GameSpyServer
Processes and persists the given key/value pair in the DOM

Overrides:
storePair in class GameSpyServer
Parameters:
key - the key for the rule, etc
value - the value of the given key
Returns:
the request type this data belongs to, or null if it was not persisted
Since:
2007-11-18

getMapTitle

public String getMapTitle()

getMinimumNetworkVersion

public String getMinimumNetworkVersion()

toJsonObject

@Deprecated
public JSONObject toJsonObject()
                        throws JSONException
Deprecated. since 2010-03-23, use JSON.toJSON(GameServer)

Description copied from class: GameServer
Converts the server into a JSON object

Overrides:
toJsonObject in class GameSpyServer
Returns:
the object describing this server
Throws:
JSONException - if an error occurs
Since:
2009-05-02