edu.turtlekit2.demos.soccer
Class Player

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by edu.turtlekit2.kernel.agents.Turtle
          extended by edu.turtlekit2.demos.soccer.Player
All Implemented Interfaces:
Serializable, madkit.kernel.ReferenceableAgent
Direct Known Subclasses:
BluePlayer, RedPlayer

public abstract class Player
extends Turtle

Adapted from the soccer simulation of TurtleKit (v1).

Version:
1.1 - 4/2010 the abstract class that defines the basic behaviors of all turtles who are soccer players, 1.2 6/12/1999
Author:
G.Beurier, Fabien MICHEL
See Also:
Serialized Form

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 edu.turtlekit2.kernel.agents.Turtle
bk, countTurtlesAt, countTurtlesHere, createTurtle, defaultAction, die, distance, distanceNowrap, dropMark, dropMarkAt, dx, dy, emit, end, fd, getAttributes, getColor, getCurrentBehaviorCount, getDirectionOfMax, getDirectionOfMaxInMyDirection, getDirectionOfMin, getDirectionOfMinInMyDirection, getHeading, getHeadingToMaxOf, getHidden, getMark, getMarkAt, getPatchAt, getPatchColor, getPatchColorAt, getPatchWithMaxOf, getPerceptPatchVariable, getSimulationGroup, getTurtlesListWithRole, getTurtlesWithRole, getTurtleWithID, getWorldHeight, getWorldWidth, giveUpRole, home, incrementBehaviorCount, incrementPatchVariableAt, initialisation, isMarkPresent, isMarkPresentAt, isPlayingRole, moveTo, moveTo, mySelf, nextPatch, playRole, randomHeading, realX, realY, setAttributes, setColor, setHeading, setHidden, setNextAction, setPatchColor, setPatchColorAt, setup, setX, setXY, setY, smell, smellAt, smellNextPatch, toString, towards, towardsNowrap, turnLeft, turnRight, turtlesAt, turtlesHere, wiggle, xcor, ycor
 
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

Player

public Player()
Method Detail

init

public void init()

activate

public void activate()
Description copied from class: Turtle
Madkit kernel usage : you must include super.activate() when overriding

Overrides:
activate in class Turtle

move

protected void move()

distFromBall

protected double distFromBall()

computeDistFromBall

protected void computeDistFromBall()

goForGoal

protected void goForGoal()

goForBall

protected void goForBall()

repositioner

protected void repositioner()

computeNearestFromBall

protected void computeNearestFromBall()

dribble

public String dribble()