Class Square.BodySegment

java.lang.Object
  extended by Item
      extended by MovingItem
          extended by Square.BodySegment
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Square

private class Square.BodySegment
extends MovingItem


Field Summary
private  Square head
           
 
Constructor Summary
Square.BodySegment(Vector pos, Square 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

head

private Square head
Constructor Detail

Square.BodySegment

public Square.BodySegment(Vector pos,
                          Square h)
Method Detail

classImage

public void classImage(java.awt.Graphics g,
                       Vector pos,
                       double zoom)
Overrides:
classImage in class MovingItem

collideAction

public void collideAction(Item other,
                          Vector oldPos)
Overrides:
collideAction in class MovingItem