package visual.dynamic.described;

import java.awt.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.awt.image.RasterFormatException;
import java.util.Random;

import visual.statik.TransformableContent;


/**
 * A Shark that "swims" around
 *
 * Note: This is a simple rule-based Sprite. 
 * Hence, it has rules in handleTick().
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class Shark extends Fish
{

    /**
     * Explicit Value Constructor
     *
     * @param content   The static visual content
     * @param width     The width of the Stage
     * @param height    The height of the Stage
     */
    public Shark(TransformableContent content,
                 double width, double height)
   
    {
       super(content, width, height);

       speed      = 8.0;
    }



    /**
     * Handle a tick event (generated by the Stage)
     *
     * @param time  The current time (which is not used)
     */
    public void handleTick(int time)
    {
       updateLocation(-320.0, 6.0);
    }
    
}
