Class ShooterMarble

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

public class ShooterMarble
extends Marble

ShooterMarble is a concrete Marble with its role as the shooter in the marble game.

Version:
1.0
Author:
Andi Sutedja

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

Constructor Detail

ShooterMarble

public ShooterMarble(java.awt.Color c,
                     int ringCenterX,
                     int ringCenterY,
                     int ringRadius)
Construct a ShooterMarble.
Parameters:
c - the color of this ShooterMarble
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 ShooterMarble on the given Graphics object.
Overrides:
draw in class Marble
Parameters:
g - the Graphics object