Class Player

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Player
All Implemented Interfaces:
java.lang.Runnable

public class Player
extends java.lang.Thread

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

Player

public Player(java.lang.String servername,
              int serverport,
              java.lang.String teamName)
Creates a new Player instance.
Parameters:
servername - a String value specifying the name of the server
serverport - an int value specifying the port
teamName - a String value is the name of the team

Player

public Player(java.lang.String servername,
              int serverport,
              java.lang.String teamName,
              int visu)
Creates a new Player instance.
Parameters:
servername - a String value specifying the name of the server
serverport - an int value specifying the port
teamName - a String value is the name of the team
visu - an int value specifying the info to start the visualisation
Method Detail

run

public void run()
This method overwrites run() from Thread. It is executed when start() is called for the Player Thread
Overrides:
run in class java.lang.Thread

main

public static void main(java.lang.String[] args)
Starts the client
Parameters:
args - The arguments passed must specify servername port teamname and maybe visualisation when used