C# Класс MrGravity.Menu_Code.Credits

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Credits ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System.Collections.Generic

Constructor for the credits screen. Sets up the list of names and categories to scrolll up

Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void

Draws the credits on screen

DrawLevel ( SpriteBatch spriteBatch, GameTime gameTime, Matrix scale ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void

Loads the images and fonts needed for this screen

Update ( GameTime gametime, GameStates &states ) : void

Update process of this screen. Moves the credits up one pixel

Приватные методы

Метод Описание
GetTextXLocation ( string text, bool header ) : int

Gets the x location of the text so that is exactly center for the string that is given

Описание методов

Credits() публичный Метод

Constructor for the credits screen. Sets up the list of names and categories to scrolll up
public Credits ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System.Collections.Generic
controlScheme IControlScheme Player's method of control
graphics GraphicsDeviceManager Graphics Manager for the game
Результат System.Collections.Generic

Draw() публичный Метод

Draws the credits on screen
public Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
gametime Microsoft.Xna.Framework.GameTime Curent gametime(unnecessary)
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Canvas the screen is drawing on
scale Microsoft.Xna.Framework.Matrix Not sure yet :)
Результат void

DrawLevel() публичный Метод

public DrawLevel ( SpriteBatch spriteBatch, GameTime gameTime, Matrix scale ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
gameTime Microsoft.Xna.Framework.GameTime
scale Microsoft.Xna.Framework.Matrix
Результат void

Load() публичный Метод

Loads the images and fonts needed for this screen
public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager Content manager this game is using
Результат void

Update() публичный Метод

Update process of this screen. Moves the credits up one pixel
public Update ( GameTime gametime, GameStates &states ) : void
gametime Microsoft.Xna.Framework.GameTime Curent gametime(unnecessary)
states GameStates State of the current game
Результат void