|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.goal.ut2004.visualizer.controller.ServerController
public class ServerController
s all the gathering of data for the basic functionality of the visualizer. It stores for instance information on each player in GameData
. It is also
the access for the application to get access to subscribe to AbstractData
and retrieve the UTServer
if that is necessary.
Method Summary | |
---|---|
static void |
createNewController()
Creates an new ServerController , disposes the old one iff exists. |
static void |
disposeController()
Disposes the current ServerController if it exists. |
EnvironmentData |
getEnvironmentData()
|
GameData |
getGameData()
|
GameStatusData |
getGameStatus()
|
static ServerController |
getInstance()
|
cz.cuni.amis.pogamut.ut2004.server.IUT2004Server |
getServer()
Returns the IUT2004Server managed by this controller WorldServerDefinition . |
nl.tudelft.pogamut.base.server.ServerDefinition<cz.cuni.amis.pogamut.ut2004.server.IUT2004Server> |
getServerDefinition()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public GameData getGameData()
public GameStatusData getGameStatus()
GameStatusData
instance that keeps track of the GameStatuspublic nl.tudelft.pogamut.base.server.ServerDefinition<cz.cuni.amis.pogamut.ut2004.server.IUT2004Server> getServerDefinition()
WorldServerDefinition
this controllers holds.public cz.cuni.amis.pogamut.ut2004.server.IUT2004Server getServer()
IUT2004Server
managed by this controller WorldServerDefinition
.
Or null if no server is running.
public EnvironmentData getEnvironmentData()
public static void createNewController()
ServerController
, disposes the old one iff exists.
server
- The UTServer used by the ServerController
public static void disposeController()
ServerController
if it exists.
public static ServerController getInstance()
ServerController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |