|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Marble
|
+--ShooterMarble
ShooterMarble is a concrete Marble with its role as the shooter in the marble game.
| Fields inherited from class Marble |
color, FRICTION,
RADIUS, TERMINAL_VELOCITY,
x, y |
| Constructor Summary | |
ShooterMarble(java.awt.Color c,
int ringCenterX, int ringCenterY, int ringRadius)
Construct a ShooterMarble. |
|
| Method Summary | |
void |
draw(java.awt.Graphics g)
Draw this ShooterMarble 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 ShooterMarble(java.awt.Color c,
int ringCenterX,
int ringCenterY,
int ringRadius)
c - the color of this ShooterMarbleringCenterX - 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 | ||||||