|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItem
MovingItem
Square
public class Square
Nested Class Summary | |
---|---|
private class |
Square.BodySegment
|
Field Summary | |
---|---|
private java.util.Set |
body
|
Constructor Summary | |
---|---|
Square(Vector pos,
Environment env)
|
Method Summary | |
---|---|
void |
action()
|
java.util.Set |
body()
|
void |
classImage(java.awt.Graphics g,
Vector pos,
double zoom)
|
void |
collideAction(Item other,
Vector oldPos)
|
void |
setBody(java.util.Set s)
|
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 |
---|
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 java.util.Set body
Constructor Detail |
---|
public Square(Vector pos, Environment env)
Method Detail |
---|
public void setBody(java.util.Set s)
public java.util.Set body()
public void action()
action
in class Item
public void collideAction(Item other, Vector oldPos)
collideAction
in class MovingItem
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 |