roboplayer.player
Class Player

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

public class Player
extends java.lang.Thread

Author:
Klangner

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Player(java.net.InetAddress host, int port)
          This constructor opens socket for connection with server
 
Method Summary
 boolean init(java.lang.String teamName, java.lang.String fileName)
          Initialize body for player
static void main(java.lang.String[] a)
           
 void run()
          This is main loop for player
 void showDebugPanel()
          Show debug frame
 
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
 

Constructor Detail

Player

public Player(java.net.InetAddress host,
              int port)
       throws java.net.SocketException
This constructor opens socket for connection with server

Method Detail

main

public static void main(java.lang.String[] a)
                 throws java.lang.Exception
java.lang.Exception

init

public boolean init(java.lang.String teamName,
                    java.lang.String fileName)
Initialize body for player

Parameters:
teamName - team name
fileName - file with player behaviour
Returns:
true if player was initialized successfuly

run

public void run()
This is main loop for player

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

showDebugPanel

public void showDebugPanel()
Show debug frame