|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Player
This is the central class. Here, all visual information is evaluated and converted into decisions and actions according to the strategy
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Player(java.lang.String servername,
int serverport,
java.lang.String teamName)
Creates a new Player instance. |
|
Player(java.lang.String servername,
int serverport,
java.lang.String teamName,
int visu)
Creates a new Player instance. |
Method Summary | |
static void |
main(java.lang.String[] args)
Starts the client |
void |
run()
This method overwrites run() from Thread . |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
Constructor Detail |
public Player(java.lang.String servername, int serverport, java.lang.String teamName)
Player
instance.servername
- a String
value specifying the name of the serverserverport
- an int
value specifying the portteamName
- a String
value is the name of the teampublic Player(java.lang.String servername, int serverport, java.lang.String teamName, int visu)
Player
instance.servername
- a String
value specifying the name of the serverserverport
- an int
value specifying the portteamName
- a String
value is the name of the teamvisu
- an int
value specifying the info to start the visualisationMethod Detail |
public void run()
run()
from Thread
. It is
executed when start()
is called for the Player
Threadrun
in class java.lang.Thread
public static void main(java.lang.String[] args)
args
- The arguments passed must specify servername port teamname
and maybe visualisation when used
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |