simuLCS
Class AgentInteractive

java.lang.Object
  extended bysimuLCS.Entity
      extended bysimuLCS.Agent
          extended bysimuLCS.AgentInteractive

public class AgentInteractive
extends Agent

Agent moving according to the position of the mouse. To move the Agent, the user has to drag the cursor inside the Arena

Author:
Benoit

Field Summary
(package private)  Utils utils
           
 
Fields inherited from class simuLCS.Agent
arena, heading, oldcoord
 
Fields inherited from class simuLCS.Entity
color_ext, color_int, coord, generator, name, paintName, size
 
Constructor Summary
AgentInteractive(Utils u, java.util.Random gen, Arena a)
           
 
Method Summary
 boolean isDangerous()
          The agent Interactive is Dangerous (sheepdog)
 void move()
          Moves according to the position of the cursor
 void move(Arena a, Agent[] ag, int nbAgents, java.awt.Graphics2D g)
           
 
Methods inherited from class simuLCS.Agent
clear, clear, getArena, getBehaviour, getBehaviour, getCoordNearTo, getRadius, isMoving, move, paint, toString
 
Methods inherited from class simuLCS.Entity
collideWithMe, distanceTo, getColor_ext, getColor_int, getCoord, getId, getName, getRadiusBody, getSize, isPaintName, setColor_ext, setColor_int, setName, setPaintName, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

utils

Utils utils
Constructor Detail

AgentInteractive

public AgentInteractive(Utils u,
                        java.util.Random gen,
                        Arena a)
Method Detail

move

public void move()
Moves according to the position of the cursor

Overrides:
move in class Agent

move

public void move(Arena a,
                 Agent[] ag,
                 int nbAgents,
                 java.awt.Graphics2D g)

isDangerous

public boolean isDangerous()
The agent Interactive is Dangerous (sheepdog)

Overrides:
isDangerous in class Agent