C# Class TugOfBaby.GameInstance

This is the main type for your game
Show file Open project: martinvium/ngj2012 Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

GameInstance ( GraphicsDeviceManager gfx, Microsoft.Xna.Framework.Content.ContentManager content, Game1 game ) : System
Initialize ( GraphicsDevice graphicsDevice ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Private Methods

Method Description
CreateBaby ( ) : void

Method Details

Draw() public method

This is called when the game should draw itself.
public Draw ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
return void

GameInstance() public method

public GameInstance ( GraphicsDeviceManager gfx, Microsoft.Xna.Framework.Content.ContentManager content, Game1 game ) : System
gfx GraphicsDeviceManager
content Microsoft.Xna.Framework.Content.ContentManager
game Game1
return System

Initialize() public method

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
public Initialize ( GraphicsDevice graphicsDevice ) : void
graphicsDevice GraphicsDevice
return void

LoadContent() public method

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( ) : void
return void

Update() public method

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
public Update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
return void