C# 클래스 MrGravity.Menu_Code.MainMenu

파일 보기 프로젝트 열기: DizWARE/Mr-Gravity 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
GetInnerRegion ( ) : Rectangle

Gets the rectangle between the menu options

GetRegion ( MenuChoices choice, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Rectangle
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
MainMenu ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System
Update ( GameTime gametime, GameStates &states, Level mainMenuLevel ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
gametime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
scale Matrix
리턴 void

GetInnerRegion() 공개 메소드

Gets the rectangle between the menu options
public GetInnerRegion ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

GetRegion() 공개 메소드

public GetRegion ( MenuChoices choice, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Rectangle
choice MenuChoices
texture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 Microsoft.Xna.Framework.Rectangle

Load() 공개 메소드

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

MainMenu() 공개 메소드

public MainMenu ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System
controlScheme IControlScheme
graphics GraphicsDeviceManager
리턴 System

Update() 공개 메소드

public Update ( GameTime gametime, GameStates &states, Level mainMenuLevel ) : void
gametime Microsoft.Xna.Framework.GameTime
states GameStates
mainMenuLevel Level
리턴 void