de.tud.dvs1.utils
Class BotPlayer

java.lang.Object
  extended by java.lang.Thread
      extended by de.tud.dvs1.mmpgp2p.MmpgP2PServiceThread
          extended by de.tud.dvs1.mmpgp2p.ClientThread
              extended by de.tud.dvs1.utils.BotPlayer
All Implemented Interfaces:
java.lang.Runnable

public class BotPlayer
extends ClientThread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String[] botNames
           
 
Fields inherited from class de.tud.dvs1.mmpgp2p.ClientThread
MAX_WAIT_NOP, STATUS_PAUSEING, STATUS_PLAYING, STATUS_STARTING, STATUS_UNDEFINED
 
Fields inherited from class de.tud.dvs1.mmpgp2p.MmpgP2PServiceThread
CR, logSystemStatsInterval, logSystemStatsLast, logSystemStatsStart, logSystemStatsWriter, MAGIC
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BotPlayer(java.util.Properties p)
           
 
Method Summary
 void attack(GameObject enemy)
           
 void gameWorldUpdated()
          Diese Methode wird aufgerufen, sobald die Welt sich geändert hat.
 void log(java.lang.Exception e)
           
 void log(java.lang.String s)
           
static void main(java.lang.String[] args)
          Hauptprogramm starten.
 
Methods inherited from class de.tud.dvs1.mmpgp2p.ClientThread
addCommand, closedConnection, executeCommand, getAvatars, getGameWorld, getRCInformationString, getTicket, incomingConnection, incomingData, login, logout, pauseGame, playGame, run, setGZIP, startGame, stopClient
 
Methods inherited from class de.tud.dvs1.mmpgp2p.MmpgP2PServiceThread
closeServerConnectionWorker, doLogSystemStats, getConnectionWorker, getDebug, getProperties, getProperty, getProperty, getServerConnectionWorker, getSystemLoad, getSystemMemory, getThreadName, getTime, getTraffic, initSystemStats, isRunning, isStarting, log_debug, log_debug, logSystemStats, openConnection, openServerConnection, printSystemStatsFirstLine, readFirstLine, resetSystemStats, setDebug, setProperty, setRunning, stopThread, waitFor, waitForShutdown
 
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
 

Field Detail

botNames

public static final java.lang.String[] botNames
Constructor Detail

BotPlayer

public BotPlayer(java.util.Properties p)
Method Detail

main

public static void main(java.lang.String[] args)
Hauptprogramm starten. Hier werden hauptsächlich Kommandozeilenparameter ausgelesen und der ClientThread an sich gestartet.


gameWorldUpdated

public void gameWorldUpdated()
Description copied from class: ClientThread
Diese Methode wird aufgerufen, sobald die Welt sich geändert hat.

Specified by:
gameWorldUpdated in class ClientThread

attack

public void attack(GameObject enemy)

log

public void log(java.lang.String s)
Specified by:
log in class MmpgP2PServiceThread

log

public void log(java.lang.Exception e)
Specified by:
log in class MmpgP2PServiceThread