|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
sv.Controller
Directing the flow to the game
Field Summary | |
static int |
CONNECT
signalize connect (-action) |
static int |
SERVE
signalize serve (-action) |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Controller()
Creates instances of must-have objects an initiates an option screen. |
Method Summary | |
Game |
getGame()
|
NetDaemon |
getNetDaemon()
|
View |
getView()
|
void |
run()
controller has to have some thread capabilities... why? |
void |
setAction(int a)
Set action ... should be used to inform the controller, what to do while establishing a connection. |
void |
setInfo(java.lang.String name,
java.lang.String url,
java.lang.String port,
int ammo)
set information about the game; maybe necessary |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONNECT
public static final int SERVE
Constructor Detail |
public Controller()
Method Detail |
public NetDaemon getNetDaemon()
public Game getGame()
public View getView()
public void setAction(int a)
a
- uses controller's finalspublic void setInfo(java.lang.String name, java.lang.String url, java.lang.String port, int ammo)
name
- playernameurl
- hostname or ipport
- portnumberammo
- ammunitionpublic void run()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |