|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectppJava.serie04.oceanlife.OceanObject
ppJava.serie04.oceanlife.Bubble
public class Bubble
A bubble floating up in the ocean
Field Summary | |
---|---|
(package private) int |
fixedEndingPos
|
(package private) int |
moveLimit
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Bubble(int x,
int y)
Constructor for a bubble at position (x,y) |
Method Summary | |
---|---|
void |
run()
The movement of a bubble |
void |
setMoveLimit(int moveLimit)
Sets the Limit to where the bubble is allowed to move |
java.lang.String |
toString()
|
Methods inherited from class ppJava.serie04.oceanlife.OceanObject |
---|
calcAbsDistance, changeDirections, checkBarrier, checkPosition, createImageIcon, genRandomVector, getBarrier, getBorders, getClassName, getDiffVector, getDistance, getImageIcon, getImageResource, getImageSize, getMoveVector, getObjectCount, getOffset, getPosition, hasSameDirection, incPosX, incPosY, isVulnerableTo, moveStep, normalizeImage, setBarrier, setBorders, setImageIcon, setImageResource, setImageSize, setMoveVector, setOffset, setPosition, switchMovementDirection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
int moveLimit
int fixedEndingPos
Constructor Detail |
---|
public Bubble(int x, int y)
x
- y
- Method Detail |
---|
public void setMoveLimit(int moveLimit)
moveLimit
- public java.lang.String toString()
toString
in class OceanObject
public void run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |