C# 클래스 Project_Starfighter.MenuComponent

This is a game component that implements IUpdateable.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: csce3513/Team15 1 사용 예제들

공개 메소드들

메소드 설명
CheckKey ( Keys theKey ) : bool
Draw ( GameTime gameTime ) : void

Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

MeasureMenu ( ) : void

Measures the game menu screen and finds the center.

MenuComponent ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, SpriteFont spriteFont, string menuItems ) : System

Main method to create all the components of this game screen.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

메소드 상세

CheckKey() 공개 메소드

public CheckKey ( Keys theKey ) : bool
theKey Keys
리턴 bool

Draw() 공개 메소드

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

Initialize() 공개 메소드

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
리턴 void

MeasureMenu() 공개 메소드

Measures the game menu screen and finds the center.
public MeasureMenu ( ) : void
리턴 void

MenuComponent() 공개 메소드

Main method to create all the components of this game screen.
public MenuComponent ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, SpriteFont spriteFont, string menuItems ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
menuItems string
리턴 System

Update() 공개 메소드

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void