|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItem
MovingItem
PushableItem
public class PushableItem
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 |
---|
public PushableItem(Vector pos, Environment env)
Method Detail |
---|
public void performSpecificFunction(Item user)
performSpecificFunction
in class Item
public boolean isPushable()
isPushable
in class Item
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |