C# Class Divine_Right.GameScreens.WorldGenerationScreen

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: Haedrian/Divine-Right

Protected Properties

Свойство Type Description
centrePoint MapCoordinate
game Microsoft.Xna.Framework.Game
graphics GraphicsDeviceManager
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Private Properties

Свойство Type Description
PrepareGrid List

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
Update ( GameTime gameTime ) : void
WorldGenerationScreen ( Microsoft.Xna.Framework.Game game, GraphicsDeviceManager graphics ) : System

Méthodes protégées

Méthode Description
DrawGrid ( IEnumerable blocks ) : void

Draws the prepared grid onto the screen

LoadContent ( ) : void

Private Methods

Méthode Description
PrepareGrid ( List blocks ) : List

Prepares the grid for drawing by converting the graphical blocks into interface blocks and giving them the coordinates required.

Method Details

Draw() public méthode

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

DrawGrid() protected méthode

Draws the prepared grid onto the screen
protected DrawGrid ( IEnumerable blocks ) : void
blocks IEnumerable
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

Update() public méthode

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

WorldGenerationScreen() public méthode

public WorldGenerationScreen ( Microsoft.Xna.Framework.Game game, GraphicsDeviceManager graphics ) : System
game Microsoft.Xna.Framework.Game
graphics GraphicsDeviceManager
Résultat System

Property Details

centrePoint protected_oe property

protected MapCoordinate centrePoint
Résultat MapCoordinate

game protected_oe property

protected Game,Microsoft.Xna.Framework game
Résultat Microsoft.Xna.Framework.Game

graphics protected_oe property

protected GraphicsDeviceManager graphics
Résultat GraphicsDeviceManager

spriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch