pacman.menu
Class MenuFunction.Quit

java.lang.Object
  extended by pacman.menu.MenuFunction
      extended by pacman.menu.MenuFunction.Quit
Enclosing class:
MenuFunction

static class MenuFunction.Quit
extends MenuFunction

The function associated with the Quit button; exits the program.


Nested Class Summary
 
Nested classes/interfaces inherited from class pacman.menu.MenuFunction
MenuFunction.Control, MenuFunction.Load_Game, MenuFunction.New_Game, MenuFunction.Quit, MenuFunction.Save_Game, MenuFunction.Sound, MenuFunction.View_Scores
 
Field Summary
 
Fields inherited from class pacman.menu.MenuFunction
mp
 
Constructor Summary
MenuFunction.Quit(MenuPanel m)
           
 
Method Summary
 void execute()
          Abstract execute method; each MenuFunction contains this method and implements its own code to perform its action.
 java.lang.String getName()
          Abstract getName method; each MenuFunction contains code in this method to return a string version of its name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuFunction.Quit

public MenuFunction.Quit(MenuPanel m)
Method Detail

execute

public void execute()
Description copied from class: MenuFunction
Abstract execute method; each MenuFunction contains this method and implements its own code to perform its action.

Specified by:
execute in class MenuFunction

getName

public java.lang.String getName()
Description copied from class: MenuFunction
Abstract getName method; each MenuFunction contains code in this method to return a string version of its name.

Specified by:
getName in class MenuFunction