|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItem
MovingItem
Snake.BodySegment
private class Snake.BodySegment
Field Summary | |
---|---|
private Snake |
head
|
private Snake.BodySegment |
next
|
Constructor Summary | |
---|---|
Snake.BodySegment(Vector pos,
Snake h,
int tailSize,
java.util.Set b)
|
Method Summary | |
---|---|
void |
classImage(java.awt.Graphics g,
Vector pos,
double zoom)
|
Methods inherited from class MovingItem |
---|
checkIfTouching, checkIfTouching, 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, 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 Snake.BodySegment next
private Snake head
Constructor Detail |
---|
public Snake.BodySegment(Vector pos, Snake h, int tailSize, java.util.Set b)
Method Detail |
---|
public void classImage(java.awt.Graphics g, Vector pos, double zoom)
classImage
in class MovingItem
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |