C# Class Gravitation.Screens.BaseGame

Inheritance: IDrawableScreen
显示文件 Open project: thedamoes/Gravitation Class Usage Examples

Protected Properties

Property Type Description
debugView FarseerPhysics.DebugViewXNA
graphics GraphicsDeviceManager
mMapLoader Maps.MapLoader
mWorld FarseerPhysics.Dynamics.World

Public Methods

Method Description
BaseGame ( DataClasses gameConfig ) : System
Draw ( SpriteBatch sb, GameTime gameTime ) : void
HandleKeyboard ( KeyboardState curState, KeyboardState prevState ) : void
LoadContent ( GraphicsDeviceManager dMan, Microsoft.Xna.Framework.Content.ContentManager cm ) : void
Update ( GameTime gameTime ) : void
getView ( ) : Matrix
windowCloseing ( ) : void

Method Details

BaseGame() public method

public BaseGame ( DataClasses gameConfig ) : System
gameConfig DataClasses
return System

Draw() public method

public Draw ( SpriteBatch sb, GameTime gameTime ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
gameTime GameTime
return void

HandleKeyboard() public method

public HandleKeyboard ( KeyboardState curState, KeyboardState prevState ) : void
curState Microsoft.Xna.Framework.Input.KeyboardState
prevState Microsoft.Xna.Framework.Input.KeyboardState
return void

LoadContent() public method

public LoadContent ( GraphicsDeviceManager dMan, Microsoft.Xna.Framework.Content.ContentManager cm ) : void
dMan GraphicsDeviceManager
cm Microsoft.Xna.Framework.Content.ContentManager
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void

getView() public method

public getView ( ) : Matrix
return Matrix

windowCloseing() public method

public windowCloseing ( ) : void
return void

Property Details

debugView protected_oe property

protected DebugViewXNA,FarseerPhysics debugView
return FarseerPhysics.DebugViewXNA

graphics protected_oe property

protected GraphicsDeviceManager graphics
return GraphicsDeviceManager

mMapLoader protected_oe property

protected Maps.MapLoader mMapLoader
return Maps.MapLoader

mWorld protected_oe property

protected World,FarseerPhysics.Dynamics mWorld
return FarseerPhysics.Dynamics.World