C# Class Project_Starfighter.MenuComponent

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: csce3513/Team15 Class Usage Examples

Méthodes publiques

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

Method Details

CheckKey() public méthode

public CheckKey ( Keys theKey ) : bool
theKey Keys
Résultat bool

Draw() public méthode

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

Initialize() public méthode

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

MeasureMenu() public méthode

Measures the game menu screen and finds the center.
public MeasureMenu ( ) : void
Résultat void

MenuComponent() public méthode

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

Update() public méthode

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