/*
 * Selim Mimaroglu
 *
 * CS680
 * Object-Oriented Design
 * "Marble Applet"
 * 
 * File: ~smimarog/cs680/p3/PlayerBall.java
 *
 */

import java.awt.Point;
import java.net.URL;

/**
 * a subclass of Ball
 *
 * Player marbles are different than other 13 marbles...
 * Player marbles are shooters
 *
 * @author Selim Mimaroglu
 * @version 1.0
 */

public class PlayerBall extends Ball {


    /**
     * initially not playing
     */
    private boolean playing = false;


    /**
     * Construct a shooter marble
     *
     * @param str image name of the shooter
     * @param xlow lower limit in x axis
     * @param ylow lower limit in y axis
     * @param width xlow + width sets the travel limit (in x axis) for this shooter
     * @param height ylow + height sets the travel limit (in y axis) for this
     * shooter
     *
     */
    public PlayerBall( String str, int xlow, int ylow, int width, int height, URL codebase ){
	super(str, xlow, ylow, width, height, codebase);
    }

    /**
     * Set this player as playing
     *
     * @param bool true if playing
     */
    public void setPlaying(boolean bool) {
	this.playing = bool;
    }

    /**
     * Is this player playing?
     *
     * @return true if playing
     */
    public boolean isPlaying() {
	return this.playing;
    }


}

