|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpacman.menu.MenuFunction
pacman.menu.MenuFunction.Quit
static class MenuFunction.Quit
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 |
|---|
public MenuFunction.Quit(MenuPanel m)
| Method Detail |
|---|
public void execute()
MenuFunction
execute in class MenuFunctionpublic java.lang.String getName()
MenuFunction
getName in class MenuFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||