Class Slug

java.lang.Object
  extended by Item
      extended by Teather
          extended by Slug
All Implemented Interfaces:
java.io.Serializable

public class Slug
extends Teather

See Also:
Serialized Form

Field Summary
private  MovingItem A
           
private  MovingItem B
           
private  boolean expanding
           
private static int maxLength
           
private static int minLength
           
 
Constructor Summary
Slug(Vector pos, Environment env)
           
 
Method Summary
 void action()
           
 boolean expanding()
           
 void toggleExpanding()
           
 
Methods inherited from class Teather
anchorItem, classImage, isSolid, length, setAnchorItem, setLength, setTeatherItem, teatherItem
 
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
 

Field Detail

A

private MovingItem A

B

private MovingItem B

minLength

private static int minLength

maxLength

private static int maxLength

expanding

private boolean expanding
Constructor Detail

Slug

public Slug(Vector pos,
            Environment env)
Method Detail

expanding

public boolean expanding()

toggleExpanding

public void toggleExpanding()

action

public void action()
Overrides:
action in class Teather