It starts up and shuts down the game.
Public Member Functions | |
pacman () | |
Constructor for this MIDlet. | |
void | startApp () |
When the OS tells this midlet to start, we simply show the GameCanvas. | |
void | pauseApp () |
Handles a request from the OS to pause the game. | |
void | restartApp (int level, int score, int lives) throws MIDletStateChangeException |
Handles a restart of the game. | |
void | continueGame () |
void | destroyApp (boolean unconditional) |
Handles a request from the OS to end the game. | |
void | splashScreenDone () |
void | menuScreen () |
void | gameOverScreen (int score) |
void | winScreen (int score) |
void | quit () |
Public Attributes | |
int | gameOver |
Private Attributes | |
GameCanvas | gameCanvas |
A canvas draws to the screen. | |
SplashScreen | splashScreen |
MenuScreen | menuScreen |
GameOverScreen | gameOverScreen |
WinScreen | winScreen |
|
Constructor for this MIDlet. This function get's the current display, and creates a GameCanvas with the display. |
|
|
|
Handles a request from the OS to end the game. Calls to destroy FrameTrigger thread accessable in GameCanvas |
|
|
|
|
|
Handles a request from the OS to pause the game. This is not currently implemented. |
|
|
|
Handles a restart of the game.
|
|
|
|
When the OS tells this midlet to start, we simply show the GameCanvas.
|
|
|
|
A canvas draws to the screen. The game canvas contains all of main functionality of the gameplay. |
|
|
|
|
|
|
|
|
|
|