C# Class UHSampleGame.Screens.LoadScreen

Inheritance: UHSampleGame.ScreenManagement.Screen
Mostrar archivo Open project: holtkampw/UH-Sample-XNA-Project

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
HandleInput ( ) : void
LoadContent ( ) : void
LoadScreen ( LevelType levelType, PlayerSetup playerTypes ) : System
Reload ( ) : void
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
BackgroundWorkerThread ( ) : void

Worker thread draws the loading animation and updates the network session while the load is taking place.

DrawLoadAnimation ( GameTime gameTime ) : void

Calls directly into our Draw method from the background worker thread, so as to update the load animation in parallel with the actual loading.

GetGameTime ( long &lastTime ) : GameTime

Works out how long it has been since the last background thread update.

Method Details

Draw() public method

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

HandleInput() public method

public HandleInput ( ) : void
return void

LoadContent() public method

public LoadContent ( ) : void
return void

LoadScreen() public method

public LoadScreen ( LevelType levelType, PlayerSetup playerTypes ) : System
levelType LevelType
playerTypes UHSampleGame.Players.PlayerSetup
return System

Reload() public method

public Reload ( ) : void
return void

UnloadContent() public method

public UnloadContent ( ) : void
return void

Update() public method

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