dd.net
Class GameServer
java.lang.Object
dd.net.GameServer
- Direct Known Subclasses:
- TurnServer
- public class GameServer
- extends java.lang.Object
A simple class template. The idea is that you can copy this file and
modify stuff where necessary. It provides examples of javadoc comments
and basic formatting conventions. Hopefully this is useful for cutting
and pasting.
If you want to start a new paragraph in Javadoc, you need a blank line
and paragraph tags, as shown here. Note the closing tag for a paragraph
is optional.
- Author:
- Eric Scharff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected NetServer server
games
protected java.util.HashMap games
GameServer
public GameServer(NetServer owner)
getGameName
public java.lang.String getGameName()
setGameName
public void setGameName(java.lang.String name)
isFull
public boolean isFull()
addGame
public void addGame(java.lang.String gameName,
GameServer game)
addPlayer
public void addPlayer(Client c)
reconnectPlayer
public boolean reconnectPlayer(Client c,
int turnNumber)
lostClient
public void lostClient(Client c)
getPlayers
public java.util.List getPlayers()
broadcast
public void broadcast(java.lang.String message)
addHandler
public void addHandler(java.lang.String commandName,
Handler handler)
setupDefaultActions
public void setupDefaultActions()
handleMessage
public void handleMessage(java.lang.String message,
Client c)