 /**
  *  Game contains the MIDlet for the Epsilon game.
  *  Epsilon is a simple space-shooter-vertical-scroller game.
  *
  *  Epsilon is available for non-commercial use only!
  *  You can learn from this sources and you can modify them
  *  for learning purposes.
  * 
  *  @author      Ziga Hajdukovic
  *  @version     1.0
  */
  
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class Game extends MIDlet
{
	public Game()
	{
	}

	public void startApp()
	{
		GameCanvas gameCanvas = new GameCanvas(this);
		Display.getDisplay(this).setCurrent(gameCanvas);
	    try {
	        // Start the game in its own thread
	        Thread myThread = new Thread(gameCanvas);
	        myThread.start();
	    } catch (Error e) {
	        destroyApp(false);
	        notifyDestroyed();
	    } 
	}

	public void pauseApp()
	{
	}

	public void destroyApp(boolean b)
	{
	}

	void exitRequested()
	{
		destroyApp(false);
		notifyDestroyed();
	}
}

