|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
turtlekit.kernel.Turtle
turtlekit.simulations.hunt2CyanVsOrange.Animat
turtlekit.simulations.hunt2CyanVsOrange.PredatorOrange
public class PredatorOrange
A Predator
Field Summary |
---|
Fields inherited from class turtlekit.simulations.hunt2CyanVsOrange.Animat |
---|
life, visionRadius |
Fields inherited from class turtlekit.kernel.Turtle |
---|
East, North, NorthEast, NorthWest, South, SouthEast, SouthWest, TURTLE_DEFAULT_ROLE, West |
Constructor Summary | |
---|---|
PredatorOrange(int visionRadius,
int initLife)
|
Method Summary | |
---|---|
java.lang.String |
chase()
|
java.lang.String |
consume()
|
int |
getStatus()
|
java.lang.String |
live()
|
java.lang.String |
sacrifice()
|
void |
setup()
|
java.lang.String |
waiting()
|
Methods inherited from class turtlekit.simulations.hunt2CyanVsOrange.Animat |
---|
consumeResource, eatPrey, getLife, move, reproduce, toString |
Methods inherited from class turtlekit.kernel.Turtle |
---|
activate, bk, countTurtlesAt, countTurtlesHere, createTurtle, defaultAction, die, distance, distanceNowrap, dropMark, dropMarkAt, dx, dy, end, fd, getColor, getHeading, getHidden, getMark, getMarkAt, getPatchColor, getPatchColorAt, getPatchVariable, getPatchVariableAt, getSimulationGroup, getTurtleWithID, getWorldHeight, getWorldWidth, giveUpRole, home, incrementPatchVariable, incrementPatchVariableAt, isMarkPresent, isMarkPresentAt, isPlayingRole, moveTo, moveTo, mySelf, playRole, randomHeading, realX, realY, setColor, setHeading, setHidden, setPatchColor, setPatchColorAt, setX, setXY, setY, towards, towardsNowrap, turnLeft, turnRight, turtlesAt, turtlesHere, xcor, ycor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PredatorOrange(int visionRadius, int initLife)
visionRadius
- initLife
- Method Detail |
---|
public void setup()
setup
in class Turtle
public java.lang.String live()
public java.lang.String consume()
public java.lang.String sacrifice()
public java.lang.String waiting()
public java.lang.String chase()
public int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |