Class ExplorerBot

java.lang.Object
  extended by Item
      extended by MovingItem
          extended by ExplorerBot
All Implemented Interfaces:
java.io.Serializable

public class ExplorerBot
extends MovingItem

See Also:
Serialized Form

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

itemsEncountered

private java.util.Set itemsEncountered
Constructor Detail

ExplorerBot

public ExplorerBot(Vector pos,
                   Environment env)
Method Detail

action

public void action()
Overrides:
action in class Item

collideAction

public void collideAction(Item other,
                          Vector oldPos)
Overrides:
collideAction in class MovingItem

performSpecificFunction

public void performSpecificFunction(Item user)
Overrides:
performSpecificFunction in class Item

isPortable

public boolean isPortable()
Overrides:
isPortable in class Item