C# Class SmashBros.Controllers.OverlayMenuController

Inheritance: Controller
Show file Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Properties

Property Type Description
Disabled bool

Public Methods

Method Description
Deactivate ( ) : void
DisableCursor ( int playerIndex ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
OnNext ( GameStateManager value ) : void
OverlayMenuController ( ScreenManager screen ) : System
Unload ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
OnAnimationDone ( ImageController img, ImageModel pos ) : void
OnCursorClick ( int playerIndex, object targetData, CursorModel cursor, bool selectKey ) : void
OnCursorCollision ( int playerIndex, object targetData, CursorModel cursor ) : void
OnCursorSeparation ( int playerIndex, object targetData, CursorModel cursor ) : void
ShowGamePauseMenu ( ) : void
ShowHelpMenu ( ) : void
ShowOptionsMenu ( ) : void
UpdateAccordingToState ( ) : void

Updates the menu according to which stat it is in

UpdateEntry ( object meny, bool select ) : void
closeMenuBox ( int i ) : void
createGamePauseMenu ( SpriteFont font ) : void
createHelpMenu ( SpriteFont font ) : void

Create the help menu is clicked on

createOptionsMenu ( SpriteFont font ) : void
exitGame ( int index ) : void

Runs when a exit game button is clicked

gameMenuClick ( int index ) : void

Runs when game menu is clicked on

helpMenuClick ( int index ) : void

Runs when help menu is clicked on Pints the playser controller

helpMenuShow ( int index ) : void

Runs when back button in help is clicked on Prints the first help menu

optionsMenuClick ( int index ) : void

Runs when options menu is clicked on

Method Details

Deactivate() public method

public Deactivate ( ) : void
return void

DisableCursor() public method

public DisableCursor ( int playerIndex ) : void
playerIndex int
return void

Load() public method

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

OnNext() public method

public OnNext ( GameStateManager value ) : void
value GameStateManager
return void

OverlayMenuController() public method

public OverlayMenuController ( ScreenManager screen ) : System
screen SmashBros.MySystem.ScreenManager
return System

Unload() public method

public Unload ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

Disabled public property

public bool Disabled
return bool