|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItem
MovingItem
ExplorerBot
public class ExplorerBot
Field Summary | |
---|---|
private java.util.Set |
itemsEncountered
|
Constructor Summary | |
---|---|
ExplorerBot(Vector pos,
Environment env)
|
Method Summary | |
---|---|
void |
action()
|
void |
collideAction(Item other,
Vector oldPos)
|
boolean |
isPortable()
|
void |
performSpecificFunction(Item user)
|
Methods inherited from class MovingItem |
---|
checkIfTouching, checkIfTouching, classImage, direction, initialTurningSpeed, move, move, moveBackward, setDirection, setInitialTurningSpeed, setSpeed, setTurningSpeed, speed, strafeLeft, strafeRight, turn, turningSpeed, turnLeft, turnRight |
Methods inherited from class Item |
---|
age, className, color, displacement, displacement, distanceFrom, distanceFrom, environment, image, incrementAge, isActive, isAlive, isEdible, isPushable, isSolid, message, messageCounter, position, radiusOfContact, reduceMessageCounter, remove, setActive, setAge, setColor, setEnvironment, setImage, setMessage, setPosition, setRadiusOfContact, showMessage, theCloser, toImage, touchingDistance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Set itemsEncountered
Constructor Detail |
---|
public ExplorerBot(Vector pos, Environment env)
Method Detail |
---|
public void action()
action
in class Item
public void collideAction(Item other, Vector oldPos)
collideAction
in class MovingItem
public void performSpecificFunction(Item user)
performSpecificFunction
in class Item
public boolean isPortable()
isPortable
in class Item
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |