org.haphazard.system.ai
Class SolitaryHunterKiller

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.haphazard.system.ai.SolitaryHunterKiller
All Implemented Interfaces:
Brain, java.lang.Runnable

public class SolitaryHunterKiller
extends java.lang.Thread
implements Brain

Silly AI that hunts the first character in sight and try to maim it


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SolitaryHunterKiller()
           
SolitaryHunterKiller(Controller controller)
           
 
Method Summary
 Character findTarget()
           
 void isRunning(boolean isRunning)
           
 void run()
           
 void setController(Controller controller)
           
 
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
 
Methods inherited from interface org.haphazard.system.ai.Brain
start
 

Constructor Detail

SolitaryHunterKiller

public SolitaryHunterKiller()

SolitaryHunterKiller

public SolitaryHunterKiller(Controller controller)
Method Detail

setController

public void setController(Controller controller)
Specified by:
setController in interface Brain

isRunning

public void isRunning(boolean isRunning)
Specified by:
isRunning in interface Brain

run

public void run()
Specified by:
run in interface java.lang.Runnable

findTarget

public Character findTarget()