PendulumGame.PendulumPauseMenuScreen Class Reference

The pause menu comes up over the top of the game, giving the player options to resume or quit. More...

Inheritance diagram for PendulumGame.PendulumPauseMenuScreen:
NewGamePhysics.StateManager.MenuScreen NewGamePhysics.StateManager.GameScreen

List of all members.

Public Member Functions

 PendulumPauseMenuScreen ()
 Constructor.
override void Draw (GameTime gameTime)
 Draws the pause menu screen. This darkens down the gameplay screen that is underneath us, and then chains to the base MenuScreen.Draw.

Detailed Description

The pause menu comes up over the top of the game, giving the player options to resume or quit.

Definition at line 16 of file PendulumPauseMenuScreen.cs.


Constructor & Destructor Documentation

PendulumGame.PendulumPauseMenuScreen.PendulumPauseMenuScreen (  ) 

Constructor.

Definition at line 24 of file PendulumPauseMenuScreen.cs.

00025             : base("Paused")
00026         {
00027             // Flag that there is no need for the game to transition
00028             // off when the pause menu is on top of it.
00029             IsPopup = true;
00030 
00031             // Create our menu entries.
00032             MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game");
00033             MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game");
00034             
00035             // Hook up menu event handlers.
00036             resumeGameMenuEntry.Selected += OnCancel;
00037             quitGameMenuEntry.Selected += QuitGameMenuEntrySelected;
00038 
00039             // Add entries to the menu.
00040             MenuEntries.Add(resumeGameMenuEntry);
00041             MenuEntries.Add(quitGameMenuEntry);
00042         }


Member Function Documentation

override void PendulumGame.PendulumPauseMenuScreen.Draw ( GameTime  gameTime  )  [virtual]

Draws the pause menu screen. This darkens down the gameplay screen that is underneath us, and then chains to the base MenuScreen.Draw.

Reimplemented from NewGamePhysics.StateManager.MenuScreen.

Definition at line 85 of file PendulumPauseMenuScreen.cs.

00086         {
00087             ScreenManager.FadeBackBufferToBlack(TransitionAlpha * 2 / 3);
00088 
00089             base.Draw(gameTime);
00090         }


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2