Main Page   Packages   Alphabetical List   Compound List   File List   Compound Members  

pacman Class Reference

List of all members.

Detailed Description

This is the base class for the midlet.

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 & Destructor Documentation

pacman.pacman  ) 
 

Constructor for this MIDlet.

This function get's the current display, and creates a GameCanvas with the display.


Member Function Documentation

void pacman.continueGame  ) 
 

void pacman.destroyApp boolean  unconditional  ) 
 

Handles a request from the OS to end the game.

Calls to destroy FrameTrigger thread accessable in GameCanvas

void pacman.gameOverScreen int  score  ) 
 

void pacman.menuScreen  ) 
 

void pacman.pauseApp  ) 
 

Handles a request from the OS to pause the game.

This is not currently implemented.

void pacman.quit  ) 
 

void pacman.restartApp int  level,
int  score,
int  lives
throws MIDletStateChangeException
 

Handles a restart of the game.

void pacman.splashScreenDone  ) 
 

void pacman.startApp  ) 
 

When the OS tells this midlet to start, we simply show the GameCanvas.

void pacman.winScreen int  score  ) 
 


Member Data Documentation

GameCanvas pacman.gameCanvas [private]
 

A canvas draws to the screen.

The game canvas contains all of main functionality of the gameplay.

int pacman.gameOver
 

GameOverScreen pacman.gameOverScreen [private]
 

MenuScreen pacman.menuScreen [private]
 

SplashScreen pacman.splashScreen [private]
 

WinScreen pacman.winScreen [private]
 


The documentation for this class was generated from the following file:
Generated on Tue May 13 00:53:03 2003 for PACMAN by doxygen1.3