Class Corpse

java.lang.Object
  extended by Item
      extended by MovingItem
          extended by PushableItem
              extended by Corpse
All Implemented Interfaces:
java.io.Serializable

public class Corpse
extends PushableItem

See Also:
Serialized Form

Field Summary
static int CIRCLE
           
private  int shape
           
static int SQUARE
           
 
Constructor Summary
Corpse(Vector pos, Environment env, double rOC, int s)
           
 
Method Summary
 void action()
           
 void classImage(java.awt.Graphics g, Vector pos, double zoom)
           
 
Methods inherited from class PushableItem
isPushable, performSpecificFunction
 
Methods inherited from class MovingItem
checkIfTouching, checkIfTouching, collideAction, 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, isSolid, message, messageCounter, 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

SQUARE

public static final int SQUARE
See Also:
Constant Field Values

CIRCLE

public static final int CIRCLE
See Also:
Constant Field Values

shape

private int shape
Constructor Detail

Corpse

public Corpse(Vector pos,
              Environment env,
              double rOC,
              int s)
Method Detail

action

public void action()
Overrides:
action in class Item

classImage

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