C# 클래스 SmashBros.Controllers.MenuController

상속: Controller
파일 보기 프로젝트 열기: Grutn/TDT4240-X2 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Deactivate() 공개 메소드

public Deactivate ( ) : void
리턴 void

Load() 공개 메소드

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

MenuController() 공개 메소드

public MenuController ( ScreenManager screen ) : System
screen SmashBros.MySystem.ScreenManager
리턴 System

MenuController() 공개 메소드

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
리턴 System

OnNext() 공개 메소드

public OnNext ( GameStateManager value ) : void
value GameStateManager
리턴 void

Unload() 공개 메소드

public Unload ( ) : void
리턴 void

Update() 공개 메소드

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