|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.xistrat.net.PlayerServer
public class PlayerServer
Server that handles interaction with a SINGLE client. It is created by F4Daemon to handle a point-to-point communication with a client.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
PlayerServer(java.net.Socket s,
byte id,
F4Daemon dmon,
boolean v)
|
Method Summary | |
---|---|
void |
abort()
|
void |
closeSocket()
|
void |
doStop()
|
void |
gameList()
MESSAGE HANDLING |
int |
getStatus()
|
void |
login(java.lang.String gameName,
java.lang.String _alias)
|
void |
logout()
|
void |
lose(java.lang.String winner)
|
void |
move(int from,
int to)
|
void |
newGame(java.lang.String gameName,
java.lang.String position,
java.lang.String komi)
|
void |
pass()
|
void |
put(int to)
|
void |
remove(int loc)
|
void |
run()
|
void |
setAlias(java.lang.String alias)
|
void |
setStatus(int state)
|
void |
undo(int num)
|
void |
win()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlayerServer(java.net.Socket s, byte id, F4Daemon dmon, boolean v)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void doStop()
public void setAlias(java.lang.String alias)
public int getStatus()
public void setStatus(int state)
public void win()
public void lose(java.lang.String winner)
public void closeSocket()
public void gameList()
gameList
in interface Server
public void newGame(java.lang.String gameName, java.lang.String position, java.lang.String komi)
newGame
in interface Server
public void login(java.lang.String gameName, java.lang.String _alias)
login
in interface Server
public void logout()
logout
in interface Server
public void abort()
abort
in interface Server
public void move(int from, int to)
move
in interface Server
public void put(int to)
put
in interface Server
public void pass()
pass
in interface Server
public void undo(int num)
undo
in interface Server
public void remove(int loc)
remove
in interface Server
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |