C# Class FarseerPhysics.Samples.FarseerPhysicsSamples

This is the main type for the samples
Inheritance: Microsoft.Xna.Framework.Game
ファイルを表示 Open project: tinco/Farseer-Physics Class Usage Examples

Public Methods

Method Description
AddScreen ( GameScreen screen ) : void

Adds a new screen to the screen manager.

ExitGame ( ) : void
FarseerPhysicsSamples ( ) : System
RemoveScreen ( GameScreen screen ) : void

Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
LoadContent ( ) : void
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Allows each screen to run logic.

Method Details

AddScreen() public method

Adds a new screen to the screen manager.
public AddScreen ( GameScreen screen ) : void
screen FarseerPhysics.Samples.ScreenSystem.GameScreen
return void

Draw() protected method

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

ExitGame() public method

public ExitGame ( ) : void
return void

FarseerPhysicsSamples() public method

public FarseerPhysicsSamples ( ) : System
return System

Initialize() protected method

protected Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

RemoveScreen() public method

Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
public RemoveScreen ( GameScreen screen ) : void
screen FarseerPhysics.Samples.ScreenSystem.GameScreen
return void

UnloadContent() protected method

protected UnloadContent ( ) : void
return void

Update() protected method

Allows each screen to run logic.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void