import java.awt.*;
import java.applet.*;

/**
 * a interemediate classes that adds speed and accel
 * for more realistic movement
 */
public class MobileSprite extends Sprite
{
    public int xvel, yvel;
    public int xacc, yacc;
    
    public MobileSprite(Image img)
    {
        super(img);
        xvel = 0;
        yvel = 0;
        xacc = 0;
        yacc = 0;
    }
    
    public void setSpeed( int xv, int yv, int xa , int ya )
    {
        setSpeed(xv, yv);
        xacc = xa;
        yacc = ya;
    }
    
    public void setSpeed( int xv, int yv )
    {
        xvel = xv;
        yvel = yv;
    }
}