|
|||||||||
| 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. |
void |
addController(Controller c)
Adds the controller to the frame's keylisteners |
void |
handleAudioEvent(AudioEvent e)
The audioEvent handler. |
void |
handleBuyMenuEvent(BuyMenuEvent e)
The buyMenuEvent handler. |
void |
handleContinueMenuEvent(ContinueMenuEvent e)
The continueMenuEvent handler. |
void |
handleEndOfLevelEvent(EndOfLevelEvent e)
The endOfLevelEvent handler. |
void |
handleInGameEvent(InGameEvent e)
The inGameEvent handler. |
void |
handleInstructionsEvent(InstructionsEvent e)
The intructionsEvent handler. |
void |
handleJeffDiesEvent(JeffDiesEvent e)
The jeffDiesEvent handler. |
void |
handleLoadEvent(LoadEvent e)
The loadEvent handler. |
void |
handleMainMenuEvent(MainMenuEvent e)
The mainMenuEvent handler. |
void |
handleNewGameEvent(NewGameEvent e)
The newGameEvent handler. |
void |
handlePauseMenuEvent(PauseMenuEvent e)
The pauseMenuEvent handler. |
void |
handleSaveEvent(SaveEvent e)
The saveEvent handler. |
void |
handleStartOfLevelEvent(StartOfLevelEvent e)
The startOfMenuEvent handler. |
void |
handleWeaponSwitchMenuEvent(WeaponSwitchMenuEvent e)
The weaponSwitchMenuEvent handler. |
static void |
main(java.lang.String[] argc)
For testing purposed only |
void |
setMainMenuController(MenuController c)
|
void |
setPauseMenuController(PauseController c)
|
| 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(MainMenuEvent e)
e - contains all the info needed about the mainMenuEvent.public void handlePauseMenuEvent(PauseMenuEvent e)
e - contains all the info needed about the pauseMenuEventpublic void handleBuyMenuEvent(BuyMenuEvent e)
e - contains all the info needed about the buyMenuEventpublic void handleContinueMenuEvent(ContinueMenuEvent e)
e - contains all the info needed about the continueMenuEventpublic void handleWeaponSwitchMenuEvent(WeaponSwitchMenuEvent e)
e - contains all the info needed about the weaponSwitchMenuEventpublic void handleNewGameEvent(NewGameEvent e)
e - contains all the info needed about the newGameEventpublic void handleSaveEvent(SaveEvent e)
e - contains all the info needed about the saveEventpublic void handleLoadEvent(LoadEvent e)
e - contains all the info needed about the loadEventpublic void handleInstructionsEvent(InstructionsEvent e)
e - contains all the info needed about the instructionsEventpublic void handleStartOfLevelEvent(StartOfLevelEvent e)
e - contains all the info needed about the startOfMenuEventpublic void handleEndOfLevelEvent(EndOfLevelEvent e)
e - contains all the info needed about the endOfLevelEventpublic void handleJeffDiesEvent(JeffDiesEvent e)
e - contains all the info needed about the jeffDiesEventpublic void handleAudioEvent(AudioEvent e)
e - contains all the info needed about the jeffDiesEventpublic void handleInGameEvent(InGameEvent e)
e - contains all the info needed about the inGameEventpublic void addController(Controller c)
c - The controller to be addedpublic void setPauseMenuController(PauseController c)
public void setMainMenuController(MenuController c)
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 | ||||||||