C:\__todo__\tecaj.www\src\Epsilon_05\Game.java
 1  /**
 2   *  Game contains the MIDlet for the Epsilon game.
 3   *  Epsilon is a simple space-shooter-vertical-scroller game.
 4   *
 5   *  Epsilon is available for non-commercial use only!
 6   *  You can learn from this sources and you can modify them
 7   *  for learning purposes.
 8   * 
 9   *  @author      Ziga Hajdukovic
10   *  @version     1.0
11   */
12   
13 import javax.microedition.midlet.*;
14 import javax.microedition.lcdui.*;
15 
16 public class Game extends MIDlet
17 {
18         Display display;
19         
20         public Game()
21         {
22         }
23 
24         public void startApp()
25         {
26                 GameCanvas gameCanvas = new GameCanvas(this);
27                 display = Display.getDisplay(this);
28                 display.setCurrent(gameCanvas);
29                 gameCanvas.run();
30         }
31 
32         public void pauseApp()
33         {
34         }
35 
36         public void destroyApp(boolean b)
37         {
38         }
39 
40         void exitRequested()
41         {
42                 destroyApp(false);
43                 notifyDestroyed();
44         }
45 }
46