|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItem
MovingItem
Organism.BodySegment
private class Organism.BodySegment
Field Summary | |
---|---|
private Organism |
head
|
Constructor Summary | |
---|---|
Organism.BodySegment(Vector pos,
Organism h)
|
Method Summary | |
---|---|
void |
classImage(java.awt.Graphics g,
Vector pos,
double zoom)
|
void |
collideAction(Item other,
Vector oldPos)
|
Methods inherited from class MovingItem |
---|
checkIfTouching, checkIfTouching, 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, isPushable, isSolid, message, messageCounter, performSpecificFunction, 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 Organism head
Constructor Detail |
---|
public Organism.BodySegment(Vector pos, Organism h)
Method Detail |
---|
public void classImage(java.awt.Graphics g, Vector pos, double zoom)
classImage
in class MovingItem
public void collideAction(Item other, Vector oldPos)
collideAction
in class MovingItem
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |