edu.sc.ants
Class EnemyAgent
java.lang.Object
|
+--edu.sc.ants.Thing
|
+--edu.sc.ants.Agent
|
+--edu.sc.ants.EnemyAgent
- public class EnemyAgent
- extends Agent
Bad guys move around randomly and do not engage in the
broadcasting of observations (why help the enemy?)
Fields inherited from class edu.sc.ants.Thing |
env,
fixed,
heading,
lastInput,
myBroadcastRange,
myColor,
myExpireWait,
myID,
mySensingRange,
mySize,
name,
running,
suspended,
type,
xLocation,
yLocation |
Constructor Summary |
EnemyAgent(int id,
Environment e,
java.lang.String n,
double x,
double y,
double h,
java.lang.String t)
|
Method Summary |
void |
draw(java.awt.Graphics g,
double x,
double y,
double heading)
|
void |
processInput()
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
EnemyAgent
public EnemyAgent(int id,
Environment e,
java.lang.String n,
double x,
double y,
double h,
java.lang.String t)
draw
public void draw(java.awt.Graphics g,
double x,
double y,
double heading)
- Overrides:
- draw in class Thing
processInput
public void processInput()
- Overrides:
- processInput in class Agent