import java.awt.*;

/**
 *
 */
public class Alien {

    public static int ALIEN_HEIGHT = 25;
    public static int ALIEN_WIDTH  = 15;   

    private int leftPosition = 0;
    private int heightPosition = 0;

    private boolean hitState = false;//Whether this alien has already been shot
    
    private Image alienImage = null;

    SpaceInvaders spaceInvaders = null;
    
    /**
     *
     */
    public Alien(Image ai, SpaceInvaders si) {
        ...	
    }

    /**
     * Returns whether ythe alien had been hit
     */
    public boolean hasBeenHit() {
        ...
    }

    /**
     * Check if a shot fired hit an alien
     */
    public boolean hitAlien(int x, int y) {

	//Is the alien currently alive?
        ...
	    
	    
        //First lets check the X range
        ...
            //X is ok, now lets check the Y range
            ...
                //We shot an alien!
                ...

    }

    /**
     * Set the position of the alien on the screen
     */
    public void setPosition(int x, int y) {
        ...
    }

    /**
     * Returns the current x position of the alien
     */
    public int getXPos() {
        ...
    }

    /**
     * Returns the current x position of the alien
     */
    public int getYPos() {
        ...
    }    

    /**
     *
     */


    /**
     *
     */    
    public void drawAlien(Graphics g) {
        if (!hitState) {
            ...
	}
    }    

}
