simuLCS
Class AgentInteractive
java.lang.Object
simuLCS.Entity
simuLCS.Agent
simuLCS.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
|
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 |
utils
Utils utils
AgentInteractive
public AgentInteractive(Utils u,
java.util.Random gen,
Arena a)
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