Class PushableItem

java.lang.Object
  extended by Item
      extended by MovingItem
          extended by PushableItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Corpse

public class PushableItem
extends MovingItem

See Also:
Serialized Form

Constructor Summary
PushableItem(Vector pos, Environment env)
           
 
Method Summary
 boolean isPushable()
           
 void performSpecificFunction(Item user)
           
 
Methods inherited from class MovingItem
checkIfTouching, checkIfTouching, classImage, collideAction, direction, initialTurningSpeed, move, move, moveBackward, setDirection, setInitialTurningSpeed, setSpeed, setTurningSpeed, speed, strafeLeft, strafeRight, turn, turningSpeed, turnLeft, turnRight
 
Methods inherited from class Item
action, age, className, color, displacement, displacement, distanceFrom, distanceFrom, environment, image, incrementAge, isActive, isAlive, isEdible, isPortable, 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
 

Constructor Detail

PushableItem

public PushableItem(Vector pos,
                    Environment env)
Method Detail

performSpecificFunction

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

isPushable

public boolean isPushable()
Overrides:
isPushable in class Item