Class OtherMarble

java.lang.Object
  |
  +--Marble
        |
        +--OtherMarble

public class OtherMarble
extends Marble

OtherMarble is a concrete Marble with its role as the marble other than the ShooterMarble in the marble game.

Version:
1.0
Author:
Andi Sutedja

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OtherMarble

public OtherMarble(java.awt.Color c,
                   int ringCenterX,
                   int ringCenterY,
                   int ringRadius)
Construct an OtherMarble.
Parameters:
c - the color of this OtherMarble
ringCenterX - the x coordinate of the center of the ring
ringCenterY - the y coordinate of the center of the ring
ringRadius - the radius of the ring
Method Detail

draw

public void draw(java.awt.Graphics g)
Draw this OtherMarble on the given Graphics object.
Overrides:
draw in class Marble
Parameters:
g - the Graphics object.