org.dyndns.kwitte.ogc
Class Game
java.lang.Object
org.dyndns.kwitte.ogc.Game
- public final class Game
- extends java.lang.Object
A game.
It contains all constants of a game at an OGC server. That are the
states of a game that never change: The name of the game, the version,
the nick name of the host, the maximum number of players, the
port of the local game server.
Thread-safe.
- See Also:
ServerConnection
|
Constructor Summary |
Game(java.lang.String game,
java.lang.String version,
java.lang.String nick,
int maxPlayers,
int port)
Creates a new Game. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Game
public Game(java.lang.String game,
java.lang.String version,
java.lang.String nick,
int maxPlayers,
int port)
- Creates a new Game.
- Parameters:
game - the name of the game, e. g. "Quake3"version - the version of the game, e. g. "1.0"nick - the name of the server, e. g. "Zad's splat arena"maxPlayers - the maximum number of playersport - the port of the local game as it shall be registered
at the OGC server. Do not mix it up with the port of the OGC server!
- Throws:
java.lang.NullPointerException - when one of game, version, nick
is null.- See Also:
ServerConnection.ServerConnection(String,int,Game)