C# Class Project290.GameElements.GameWorld

This is the main public class for the game, which is the first thing initiallized, and it the ultimate controller of everything that is going on. Although this is originally made as an instanced object, all of the variables are static (which is okay, as there will only ever be 1 of these existing at a time). Thus, just say GameWorld.variable from anywhere to get easy access to that variable.
Inheritance: Microsoft.Xna.Framework.Game
Mostra file Open project: scastle/Solitude Class Usage Examples

Public Methods

Method Description
ExitGame ( ) : void

Exits the game.

GameWorld ( ) : System

Initializes a new instance of the GameWorld class.

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void

Reference page contains code sample.

Initialize ( ) : void

Called after the Game and GraphicsDevice are created, but before LoadContent. Reference page contains code sample.

LoadContent ( ) : void

Loads the sprites and audio.

Update ( GameTime gameTime ) : void

Reference page contains links to related conceptual articles.

Private Methods

Method Description
ForceSignIn ( ) : void

Forces at least one player to be signed in at all times

Method Details

Draw() protected method

Reference page contains code sample.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Time passed since the last call to Draw.
return void

ExitGame() public static method

Exits the game.
public static ExitGame ( ) : void
return void

GameWorld() public method

Initializes a new instance of the GameWorld class.
public GameWorld ( ) : System
return System

Initialize() protected method

Called after the Game and GraphicsDevice are created, but before LoadContent. Reference page contains code sample.
protected Initialize ( ) : void
return void

LoadContent() protected method

Loads the sprites and audio.
protected LoadContent ( ) : void
return void

Update() protected method

Reference page contains links to related conceptual articles.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Time passed since the last call to Update.
return void