package game;

import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

/**
 *
 * @author user
 */

public class S extends Sprite implements L {
    
    public S(Image image) {
        super(image);
    }
    
    public S(Image image, int width, int height) {
        super(image, width, height);
    }
    
    public void check(int x, int y, int sWidth, int sHeight) {
        if(getX()+getWidth() > x-sWidth && getX() < x+sWidth && getY()+getHeight() > y-sHeight && getY() < y+sHeight) {
            if(!isVisible()) setVisible(true);
        }
    }
    
}
