C# Class Gravitation.Screens.GameTypes.TwoPlayerBaseGame

Inheritance: BaseGame
Show file Open project: thedamoes/Gravitation Class Usage Examples

Protected Properties

Property Type Description
cam CameraControls.TwoPlayerCamera
mPlayer1 ControllerAgents.LocalAgent
mPlayer1ControllerConfig Input.ControlConfig
mPlayer2 ControllerAgents.LocalAgent
mPlayer2ControllerConfig Input.ControlConfig

Public Methods

Method Description
Draw ( Microsoft sb, GameTime gameTime ) : void
HandleKeyboard ( KeyboardState state, KeyboardState prevState ) : void
LoadContent ( GraphicsDeviceManager graphics, Microsoft.Xna.Framework.Content.ContentManager Content ) : void
TwoPlayerBaseGame ( DataClasses gameConfig ) : System
Update ( GameTime gameTime ) : void
getView ( ) : Matrix

Private Methods

Method Description
initaliseHUD ( ) : void
initalisePlayer1Controles ( ) : void
initalisePlayer2Controles ( ) : void

Method Details

Draw() public method

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

HandleKeyboard() public method

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

LoadContent() public method

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

TwoPlayerBaseGame() public method

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

Update() public method

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

getView() public method

public getView ( ) : Matrix
return Matrix

Property Details

cam protected property

protected CameraControls.TwoPlayerCamera cam
return CameraControls.TwoPlayerCamera

mPlayer1 protected property

protected ControllerAgents.LocalAgent mPlayer1
return ControllerAgents.LocalAgent

mPlayer1ControllerConfig protected property

protected Input.ControlConfig mPlayer1ControllerConfig
return Input.ControlConfig

mPlayer2 protected property

protected ControllerAgents.LocalAgent mPlayer2
return ControllerAgents.LocalAgent

mPlayer2ControllerConfig protected property

protected Input.ControlConfig mPlayer2ControllerConfig
return Input.ControlConfig