|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
edu.turtlekit2.kernel.agents.Turtle
edu.turtlekit2.demos.soccer.Player
public abstract class Player
Adapted from the soccer simulation of TurtleKit (v1).
Field Summary |
---|
Fields inherited from class edu.turtlekit2.kernel.agents.Turtle |
---|
angle, angleCos, angleSin, color, East, hidden, initMethod, North, NorthEast, NorthWest, position, South, SouthEast, SouthWest, TURTLE_DEFAULT_ROLE, West, x, y |
Constructor Summary | |
---|---|
Player()
|
Method Summary | |
---|---|
void |
activate()
Madkit kernel usage : you must include super.activate() when overriding |
protected void |
computeDistFromBall()
|
protected void |
computeNearestFromBall()
|
protected double |
distFromBall()
|
String |
dribble()
|
protected void |
goForBall()
|
protected void |
goForGoal()
|
void |
init()
|
protected void |
move()
|
protected void |
repositioner()
|
Methods inherited from class madkit.kernel.AbstractAgent |
---|
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, hashCode, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, receiveMessage, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, windowClosing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Player()
Method Detail |
---|
public void init()
public void activate()
Turtle
activate
in class Turtle
protected void move()
protected double distFromBall()
protected void computeDistFromBall()
protected void goForGoal()
protected void goForBall()
protected void repositioner()
protected void computeNearestFromBall()
public String dribble()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |