|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--uk.org.redfelineninja.risk.server.RiskServer
This is a application based server for the Risk Arena.
It is capable of running within a Thread to allow it to be easily
integrated into the client. It also provides a main
method to
allow seperate testing.
Field Summary | |
static java.lang.String |
defaultMap
This is the original risk map (included in the distribution). |
static int |
defaultPort
Default port for the Risk server. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
RiskServer()
Create a server on the default port using the standard output as the server console. |
|
RiskServer(int p)
Start the server on the supplied port using the standard output as the server console. |
|
RiskServer(int p,
java.io.PrintWriter w)
Start the sever on the supplied port using the supplied PrintWriter as the server console. |
|
RiskServer(java.io.PrintWriter w)
Start the sever on the default port using the supplied PrintWriter as the server console. |
Method Summary | |
static void |
main(java.lang.String[] args)
Start the server non-threaded. |
void |
run()
This method starts the server and waits for connections. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int defaultPort
public static final java.lang.String defaultMap
Constructor Detail |
public RiskServer()
public RiskServer(int p)
public RiskServer(java.io.PrintWriter w)
public RiskServer(int p, java.io.PrintWriter w)
Method Detail |
public static void main(java.lang.String[] args)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |