|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItem
MovingItem
PushableItem
Corpse
public class Corpse
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 |
---|
public static final int SQUARE
public static final int CIRCLE
private int shape
Constructor Detail |
---|
public Corpse(Vector pos, Environment env, double rOC, int s)
Method Detail |
---|
public void action()
action
in class Item
public void classImage(java.awt.Graphics g, Vector pos, double zoom)
classImage
in class MovingItem
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |