Class Teather
java.lang.Object
Item
Teather
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Muscle, Slug
public class Teather
- extends Item
- See Also:
- Serialized Form
Methods inherited from class Item |
age, className, color, displacement, displacement, distanceFrom, distanceFrom, environment, image, incrementAge, isActive, isAlive, isEdible, isPortable, isPushable, 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 |
length
private double length
teatherItem
private MovingItem teatherItem
anchorItem
private MovingItem anchorItem
Teather
public Teather(MovingItem a,
MovingItem t,
double l)
action
public void action()
- Overrides:
action
in class Item
teatherItem
public MovingItem teatherItem()
setTeatherItem
public void setTeatherItem(MovingItem i)
anchorItem
public MovingItem anchorItem()
setAnchorItem
public void setAnchorItem(MovingItem i)
length
public double length()
setLength
public void setLength(double l)
classImage
public void classImage(java.awt.Graphics g,
Vector pos,
double zoom)
- Overrides:
classImage
in class Item
isSolid
public boolean isSolid()
- Overrides:
isSolid
in class Item