C# Класс Project_Starfighter.MenuComponent

This is a game component that implements IUpdateable.
Наследование: Microsoft.Xna.Framework.DrawableGameComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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