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 edu.sc.ants.Agent
drawInfo, generateAction
 
Methods inherited from class edu.sc.ants.Thing
draw, expireObservations, incorporateObservations, incorporateOthersObservations, resume, run, start, stop, suspend
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

EnemyAgent

public EnemyAgent(int id,
                  Environment e,
                  java.lang.String n,
                  double x,
                  double y,
                  double h,
                  java.lang.String t)
Method Detail

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