C# Class Divine_Right.GameScreens.WorldGenerationScreen

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Datei anzeigen Open project: Haedrian/Divine-Right

Protected Properties

Property Type Description
centrePoint MapCoordinate
game Microsoft.Xna.Framework.Game
graphics GraphicsDeviceManager
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Private Properties

Property Type Description
PrepareGrid List

Public Methods

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

Protected Methods

Method Description
DrawGrid ( IEnumerable blocks ) : void

Draws the prepared grid onto the screen

LoadContent ( ) : void

Private Methods

Method 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 method

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

DrawGrid() protected method

Draws the prepared grid onto the screen
protected DrawGrid ( IEnumerable blocks ) : void
blocks IEnumerable
return void

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

WorldGenerationScreen() public method

public WorldGenerationScreen ( Microsoft.Xna.Framework.Game game, GraphicsDeviceManager graphics ) : System
game Microsoft.Xna.Framework.Game
graphics GraphicsDeviceManager
return System

Property Details

centrePoint protected_oe property

protected MapCoordinate centrePoint
return MapCoordinate

game protected_oe property

protected Game,Microsoft.Xna.Framework game
return Microsoft.Xna.Framework.Game

graphics protected_oe property

protected GraphicsDeviceManager graphics
return GraphicsDeviceManager

spriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch