|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Agent | |
---|---|
appletbots | |
appletbots.balls | |
appletbots.directedballs | |
appletbots.friendly | |
appletbots.gatherers | |
appletbots.spreadout | |
appletbots.swarm | |
appletbots.tag |
Uses of Agent in appletbots |
---|
Subclasses of Agent in appletbots | |
---|---|
class |
CarrierAgent
This class represents an agent that can pick up objects in the appletbots world. |
class |
RandomAgent
This is an agent that doesn't really react to stimuli in the world, it simply accelerates in a random direction. |
Methods in appletbots with parameters of type Agent | |
---|---|
WorldObject |
World.getClosestObjectOfType(Agent agent,
java.lang.Class type)
Returns the closest object of the given type to the given agent that is seen by the agent |
java.util.List |
World.getNeighbors(Agent agent)
Returns all the other agents that can be seen by the given agent, normally called by the given agent himself. |
java.util.List |
World.getSeenObjects(Agent agent)
Returns all the objects that can be seen by the given agent, normally called by the given agent himself. |
Uses of Agent in appletbots.balls |
---|
Subclasses of Agent in appletbots.balls | |
---|---|
class |
Kicker
A kicker agent chooses a visible ball at random and accelerates towards it. |
Uses of Agent in appletbots.directedballs |
---|
Subclasses of Agent in appletbots.directedballs | |
---|---|
class |
DirectedKicker
A directed kicker agent chooses a visible ball at random and tries to "kick" it so that the ball will move in the the bot's goal direction. |
Uses of Agent in appletbots.friendly |
---|
Subclasses of Agent in appletbots.friendly | |
---|---|
class |
FriendlyAgent
A friendly agent looks at all the other agents he can see and randomly selects one to be his friend. |
Methods in appletbots.friendly that return Agent | |
---|---|
Agent |
FriendlyAgent.getFriend()
Returns the selected friend |
Uses of Agent in appletbots.gatherers |
---|
Subclasses of Agent in appletbots.gatherers | |
---|---|
class |
Gatherer
A gatherer agent chooses the closest visible piece of food that is currently not being carried by anyone (and is not already in the agent's home base) and accelerates towards it. |
Uses of Agent in appletbots.spreadout |
---|
Subclasses of Agent in appletbots.spreadout | |
---|---|
class |
SpreadOutAgent
A spread-out agent looks at its neighbors, and accelerates to a position to maximize the distance to his neighbors. |
Uses of Agent in appletbots.swarm |
---|
Subclasses of Agent in appletbots.swarm | |
---|---|
class |
SwarmAgent
A swarm agent looks at its neighbors, chooses a certain number of them, and accelerates in the direction of their average velocity, with a part of its acceleration being randomized. |
Uses of Agent in appletbots.tag |
---|
Subclasses of Agent in appletbots.tag | |
---|---|
class |
TagAgent
If a tag agent is "it", he will try to touch whichever non-"it" agent is closest to him. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |