|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.view.View
public class View
Constructor Summary | |
---|---|
View()
Default constructor acceptingGameEvent is set to false |
|
View(Game g,
java.awt.event.KeyListener k)
Constructor with a game parameter. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is called by the timer. |
void |
beginTimeClicks()
This method creates the timer, and starts it. |
javax.swing.JFrame |
getMyFrame()
THIS IS ONLY HERE FOR TESTING PURPOSES |
GamePanel |
getMyGamePanel()
THIS IS ONLY HERE FOR TESTING PURPOSES |
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. |
void |
initializeGUI()
This method is called during the initialization of the game. |
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, java.awt.event.KeyListener k)
g
- The game that the view will handle events fromMethod Detail |
---|
public void initializeGUI()
public void beginTimeClicks()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public 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 handleInGameEvent(InGameEvent 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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |