C# Class SmashBros.Controllers.MenuController

Inheritance: Controller
ファイルを表示 Open project: Grutn/TDT4240-X2 Class Usage Examples

Private Properties

Property Type Description
BgImageAnimationDone void
CreateBtn FarseerPhysics.Dynamics.Body
LoadCharacters void
LoadMaps void
LoadText void
OnBackPress void
OnCursorClick void
OnCursorCollision void
OnCursorSeparation void
OnStartPress void
hoverCharacter void
hoverOutCharacter void

Public Methods

Method Description
Deactivate ( ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
MenuController ( ScreenManager screen ) : System
MenuController ( ScreenManager screen, List gameStats ) : System

Constructor is used when game play is over and GamePlayController creates the menu controller agian

OnNext ( GameStateManager value ) : void
Unload ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
BgImageAnimationDone ( ImageController target, ImageModel imagePosition ) : void
CreateBtn ( int x, int y, int width, int height, string btnName ) : Body

Creates a collision box that works as a button

LoadCharacters ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
LoadMaps ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
LoadText ( ) : void

Loads all the textboxes on the menu

OnBackPress ( int playerIndex ) : 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
OnStartPress ( int playerIndex ) : void
hoverCharacter ( int playerIndex, int characterIndex ) : void

Show the character at bottom of screen when cursor hovers a characterThumb

hoverOutCharacter ( int playerIndex, int characterIndex ) : void

Method Details

Deactivate() public method

public Deactivate ( ) : void
return void

Load() public method

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

MenuController() public method

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

MenuController() public method

Constructor is used when game play is over and GamePlayController creates the menu controller agian
public MenuController ( ScreenManager screen, List gameStats ) : System
screen SmashBros.MySystem.ScreenManager
gameStats List
return System

OnNext() public method

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

Unload() public method

public Unload ( ) : void
return void

Update() public method

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