Class Muscle
java.lang.Object
Item
Teather
Muscle
- All Implemented Interfaces:
- java.io.Serializable
public class Muscle
- extends Teather
- 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 |
A
private MovingItem A
B
private MovingItem B
minLength
private double minLength
maxLength
private double maxLength
speed
private double speed
expanding
private boolean expanding
oscillating
private boolean oscillating
Muscle
public Muscle(MovingItem a,
MovingItem b,
double min,
double max)
Muscle
public Muscle(MovingItem a,
MovingItem b,
double len)
speed
public double speed()
setSpeed
public void setSpeed(double s)
maxLength
public double maxLength()
setMaxLength
public void setMaxLength(double m)
minLength
public double minLength()
setMinLength
public void setMinLength(double m)
expanding
public boolean expanding()
toggleExpanding
public void toggleExpanding(boolean b)
switchAnchor
public void switchAnchor()
oscillating
public boolean oscillating()
toggleOscillating
public void toggleOscillating(boolean b)
action
public void action()
- Overrides:
action
in class Teather