C# Class SmashBros.Controllers.MenuController

Inheritance: Controller
Afficher le fichier Open project: Grutn/TDT4240-X2 Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Deactivate ( ) : void
Résultat void

Load() public méthode

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

MenuController() public méthode

public MenuController ( ScreenManager screen ) : System
screen SmashBros.MySystem.ScreenManager
Résultat System

MenuController() public méthode

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
Résultat System

OnNext() public méthode

public OnNext ( GameStateManager value ) : void
value GameStateManager
Résultat void

Unload() public méthode

public Unload ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void