|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.view.View
public class View
| Constructor Summary | |
|---|---|
View()
Default constructor acceptingGameEvent is set to false |
|
View(Game g)
Constructor with a game parameter. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is called by the timer. |
javax.swing.JFrame |
getMyFrame()
THIS IS ONLY HERE FOR TESTING PURPOSES |
GamePanel |
getMyGamePanel()
THIS IS ONLY HERE FOR TESTING PURPOSES |
void |
handleBuyMenuEvent(GameEvent e)
The buyMenuEvent handler. |
void |
handleContinueMenuEvent(GameEvent e)
The continueMenuEvent handler. |
void |
handleEndOfLevelEvent(GameEvent e)
The endOfLevelEvent handler. |
void |
handleInGameEvent(GameEvent e)
The inGameEvent handler. |
void |
handleInstructionsEvent(GameEvent e)
The intructionsEvent handler. |
void |
handleJeffDiesEvent(GameEvent e)
The jeffDiesEvent handler. |
void |
handleLoadEvent(GameEvent e)
The loadEvent handler. |
void |
handleMainMenuEvent(GameEvent e)
The mainMenuEvent handler. |
void |
handleNewGameEvent(GameEvent e)
The newGameEvent handler. |
void |
handlePauseMenuEvent(GameEvent e)
The pauseMenuEvent handler. |
void |
handleSaveEvent(GameEvent e)
The saveEvent handler. |
void |
handleStartOfLevelEvent(GameEvent e)
The startOfMenuEvent handler. |
void |
handleWeaponSwitchMenuEvent(GameEvent e)
The weaponSwitchMenuEvent handler. |
static void |
main(java.lang.String[] argc)
For testing purposed only |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public View()
public View(Game g)
g - The game that the view will handle events from| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void handleMainMenuEvent(GameEvent e)
e - contains all the info needed about the mainMenuEvent.public void handlePauseMenuEvent(GameEvent e)
e - contains all the info needed about the pauseMenuEventpublic void handleBuyMenuEvent(GameEvent e)
e - contains all the info needed about the buyMenuEventpublic void handleContinueMenuEvent(GameEvent e)
e - contains all the info needed about the continueMenuEventpublic void handleWeaponSwitchMenuEvent(GameEvent e)
e - contains all the info needed about the weaponSwitchMenuEventpublic void handleNewGameEvent(GameEvent e)
e - contains all the info needed about the newGameEventpublic void handleSaveEvent(GameEvent e)
e - contains all the info needed about the saveEventpublic void handleLoadEvent(GameEvent e)
e - contains all the info needed about the loadEventpublic void handleInstructionsEvent(GameEvent e)
e - contains all the info needed about the instructionsEventpublic void handleStartOfLevelEvent(GameEvent e)
e - contains all the info needed about the startOfMenuEventpublic void handleEndOfLevelEvent(GameEvent e)
e - contains all the info needed about the endOfLevelEventpublic void handleJeffDiesEvent(GameEvent e)
e - contains all the info needed about the jeffDiesEventpublic void handleInGameEvent(GameEvent e)
e - contains all the info needed about the inGameEventpublic GamePanel getMyGamePanel()
public javax.swing.JFrame getMyFrame()
public static void main(java.lang.String[] argc)
argc - no arguments needed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||