|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Marble
|
+--OtherMarble
OtherMarble is a concrete Marble with its role as the marble other than the ShooterMarble in the marble game.
| Fields inherited from class Marble |
color, FRICTION,
RADIUS, TERMINAL_VELOCITY,
x, y |
| Constructor Summary | |
OtherMarble(java.awt.Color c,
int ringCenterX, int ringCenterY, int ringRadius)
Construct an OtherMarble. |
|
| Method Summary | |
void |
draw(java.awt.Graphics g)
Draw this OtherMarble on the given Graphics object. |
| Methods inherited from class Marble |
applyForce,
getColor, getDirection,
getPathEnumerator, getVelocity,
getVertex, isMoving,
isOutsideRing, isTouching,
isTouching, isTouching,
move, setVertex,
setVertex, toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public OtherMarble(java.awt.Color c,
int ringCenterX,
int ringCenterY,
int ringRadius)
c - the color of this OtherMarbleringCenterX - the x coordinate of the center of the ringringCenterY - the y coordinate of the center of the ringringRadius - the radius of the ring| Method Detail |
public void draw(java.awt.Graphics g)
draw
in class Marble
g - the Graphics object.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||