|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.core.ReferenceHolder
This class holds references to all important modules of the server. The modules can then get references to the other modules via this class.
Field Summary | |
static PrintWriter |
debug
Debug output |
static PrintWriter |
err
Standard error output |
static BufferedReader |
in
Standard input |
static PrintWriter |
log
Log output |
static boolean |
markRoute
|
static PrintWriter |
out
Standard output |
static String |
replayDataFile
|
static ObjectOutputStream |
replayLog
|
static boolean |
replayMode
|
Constructor Summary | |
ReferenceHolder()
|
Method Summary | |
static ActionProcessor |
getActionProcessor()
Gets the ActionProcessor attribute of the ReferenceHolder class |
static AutomatonMap |
getAutomatonMap()
Gets the AutomatonMap attribute of the ReferenceHolder class |
static Client |
getClient()
|
static Clock |
getClock()
Gets the game clock. |
static Server |
getComServer()
Gets the ComServer attribute of the ReferenceHolder class |
static String |
getDefaultReplayLogName()
|
static ClassLoader |
getGameClassLoader()
Gets the GameClassLoader attribute of the ReferenceHolder class |
static String |
getGameDescription()
Gets a short description of the game. |
static String |
getGameName()
Gets the name of the game. |
static boolean |
getMarkRoute()
|
static QManager |
getQManager()
Gets the QManager attribute of the ReferenceHolder class |
static Referee |
getReferee()
Gets the Referee of the game. |
static String |
getReplayDataFile()
|
static ObjectOutputStream |
getReplayLog()
|
static TimeString |
getTimeString()
Gets the time string factory. |
static UnitManager |
getUnitManager()
Gets the UnitManager attribute of the ReferenceHolder class |
static VisibilityFilter |
getVisibilityFilter()
Gets the visibility filter. |
static VisibilityInfo |
getVisibilityInfo()
Gets the visibility info object. |
static boolean |
inReplayMode()
|
static void |
setActionProcessor(ActionProcessor _actionProcessor)
Sets the ActionProcessor attribute of the ReferenceHolder class |
static void |
setAutomatonMap(AutomatonMap map)
Sets the AutomatonMap attribute of the ReferenceHolder class |
static void |
setClient(Client argClient)
added by hs Sets the Client, primary for use by DKEReferee |
static void |
setClock(Clock clock)
Sets the clock. |
static void |
setComServer(Server _comServer)
Sets the ComServer attribute of the ReferenceHolder class |
static void |
setGameClassLoader(ClassLoader loader)
Sets the GameClassLoader attribute of the ReferenceHolder class |
static void |
setGameDescription(String desc)
Sets the description of the game. |
static void |
setGameName(String name)
Sets the name of the game. |
static void |
setQManager(QManager _qManager)
Sets the QManager attribute of the ReferenceHolder class |
static void |
setReferee(Referee argReferee)
added by hs Sets the Referee of a game |
static void |
setTimeString(TimeString timeString)
Supplies an object that constructs strings representing time. |
static void |
setUnitManager(UnitManager _unitManager)
Sets the UnitManager attribute of the ReferenceHolder class |
static void |
setVisibilityFilter(VisibilityFilter filter)
Sets the visibility filter. |
static void |
setVisibilityInfo(VisibilityInfo info)
Sets the visibility info object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static BufferedReader in
public static PrintWriter out
public static PrintWriter log
public static PrintWriter debug
public static PrintWriter err
public static ObjectOutputStream replayLog
public static boolean replayMode
public static boolean markRoute
public static String replayDataFile
Constructor Detail |
public ReferenceHolder()
Method Detail |
public static void setAutomatonMap(AutomatonMap map)
map
- The new AutomatonMap valuepublic static void setActionProcessor(ActionProcessor _actionProcessor)
_actionProcessor
- The new ActionProcessor valuepublic static void setUnitManager(UnitManager _unitManager)
_unitManager
- The new UnitManager valuepublic static void setQManager(QManager _qManager)
_qManager
- The new QManager valuepublic static void setComServer(Server _comServer)
_comServer
- The new ComServer valuepublic static void setVisibilityFilter(VisibilityFilter filter)
filter
- The new visibility filter.public static void setVisibilityInfo(VisibilityInfo info)
public static void setClock(Clock clock)
clock
- The new game clock.public static void setTimeString(TimeString timeString)
timeString
- The new time string factory.public static void setGameName(String name)
name
- The new name.public static void setGameDescription(String desc)
desc
- The new description.public static void setGameClassLoader(ClassLoader loader)
loader
- The new GameClassLoader valuepublic static void setReferee(Referee argReferee)
public static void setClient(Client argClient)
public static AutomatonMap getAutomatonMap()
public static ActionProcessor getActionProcessor()
public static UnitManager getUnitManager()
public static QManager getQManager()
public static Server getComServer()
public static VisibilityFilter getVisibilityFilter()
public static VisibilityInfo getVisibilityInfo()
public static ClassLoader getGameClassLoader()
public static Clock getClock()
public static TimeString getTimeString()
public static String getGameName()
public static String getGameDescription()
public static Referee getReferee()
public static Client getClient()
public static ObjectOutputStream getReplayLog()
public static boolean inReplayMode()
public static String getDefaultReplayLogName()
public static boolean getMarkRoute()
public static String getReplayDataFile()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |