import java.awt.*;
import java.applet.*;
public class BitmapSprite extends Sprite {
  protected int locx;
  protected int locy;

  //image dimensions
  protected int width,height;

  Image image;		// the bitmap
  Applet applet;	// the parent applet

  public BitmapSprite(int x,int y,Image i,Applet a) {
    locx = x;
    locy = y;
    image = i;
    applet = a;
    restore();
  }

  // set the size of the bitmap
  public void setSize(int w,int h) {
    width = w;
    height = h;
  }

  public void update() {

    // do nothing

  }

  public void paint(Graphics g) {
    if (visible) {
      g.drawImage(image,locx,locy,applet);
    }
  }

}
