public class Greep extends Creature
| Constructor and Description |
|---|
Greep(Spaceship ship)
Create a creature at its ship.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
behave()
Defines what a `Creature` will do
|
void |
checkFood()
Is there any food here where we are? If so, try to load some!
|
static java.lang.String |
getAuthorName()
Create a Greep with its home space ship.
|
java.lang.String |
getCurrentImage()
This method specifies the image we want displayed at any time.
|
java.lang.Boolean |
isReturningToShip() |
java.lang.Boolean |
isWaitingForAssistance() |
java.lang.Boolean |
isWaitingToAssist() |
void |
returnToShip() |
void |
seekTomatoPile() |
java.lang.Boolean |
shouldSeekTomatoPile() |
void |
turnRandomDegrees() |
void |
turnRandomDegrees(int minimumTurn,
int maximumTurn) |
void |
turnRandomly(int minimumTurn,
int maximumTurn,
float likelihoodOfTurn) |
void |
waitForTomatoLoadingAssistance() |
act, canMove, dropTomato, getMemory, getNextXCoordinate, getNextYCoordinate, getShip, getSurroundingTomatoPile, isAtShip, isAtTomatoes, isAtWater, isAtWorldEdge, isCarryingTomato, isFlaggedForState, isSeeingPaint, loadTomato, move, move, removeTomato, setFlag, setImage, setMemory, spit, turnAwayFrom, turnAwayFrom, turnOppositeDirection, turnTowards, turnTowards, turnTowardsHome, turnTowardsHomeaddedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getWorldOfType, getX, getY, intersects, isAtEdge, isTouching, removeTouching, setImage, setLocation, setRotation, turn, turnTowardspublic Greep(Spaceship ship)
ship - protected void behave()
Creaturepublic java.lang.Boolean isWaitingForAssistance()
public java.lang.Boolean isWaitingToAssist()
public void waitForTomatoLoadingAssistance()
public java.lang.Boolean isReturningToShip()
public void returnToShip()
public java.lang.Boolean shouldSeekTomatoPile()
public void seekTomatoPile()
public void turnRandomDegrees()
public void turnRandomDegrees(int minimumTurn,
int maximumTurn)
public void turnRandomly(int minimumTurn,
int maximumTurn,
float likelihoodOfTurn)
public void checkFood()
public java.lang.String getCurrentImage()
getCurrentImage in class Creaturepublic static java.lang.String getAuthorName()