|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMineSweeperMenuHandler
Field Summary | |
static int |
BEGINNER_LEVEL
A constant value representing the easiest level of play. |
static int |
EXPERT_LEVEL
A constant value representing the hardest level of play. |
static int |
INTERMEDIATE_LEVEL
A constant value representing an intermediate level of play. |
Constructor Summary | |
MineSweeperMenuHandler(JMenu lm,
JMenu gm)
Creates a new MineSweeperMenuHandler object. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
An event handler that interprets menu selections on the games two menus. |
void |
actLikeStart()
Start playing the game. |
void |
resetMenus()
Resets the state of the menus once the game has ended. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BEGINNER_LEVEL
public static final int EXPERT_LEVEL
public static final int INTERMEDIATE_LEVEL
Constructor Detail |
public MineSweeperMenuHandler(JMenu lm, JMenu gm)
lm
- the level menu to usegm
- the game menu to useMethod Detail |
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the event to respond topublic void actLikeStart()
public void resetMenus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |