C# Class Project2.Project2Game

Inheritance: Game
Show file Open project: nuclearpidgeon/graphicsproj2 Class Usage Examples

Public Properties

Property Type Description
debugDrawer DebugDrawer
level Project2.GameObjects.Level
models Model>.Dictionary
mouseState SharpDX.Toolkit.Input.MouseState

Public Methods

Method Description
OnHolding ( GestureRecognizer sender, HoldingEventArgs args ) : void
OnManipulationCompleted ( GestureRecognizer sender, ManipulationCompletedEventArgs args ) : void
OnManipulationStarted ( GestureRecognizer sender, ManipulationStartedEventArgs args ) : void
OnManipulationUpdated ( GestureRecognizer sender, ManipulationUpdatedEventArgs args ) : void
Project2Game ( LevelSelection levelSelection ) : System

Initializes a new instance of the Project2Game class.

Tapped ( GestureRecognizer sender, TappedEventArgs args ) : void
incScore ( int x ) : void
isPaused ( ) : bool
restartGame ( ) : void
togglePaused ( ) : void

Protected Methods

Method Description
Draw ( SharpDX.Toolkit.GameTime gameTime ) : void
Initialize ( ) : void
LoadContent ( ) : void
OnExiting ( object sender, EventArgs args ) : void

Use this method body to do stuff while the game is exiting.

Update ( SharpDX.Toolkit.GameTime gameTime ) : void

Private Methods

Method Description
OnDeviceCreated ( object sender, EventArgs e ) : void

When the virtual graphics device is created, we need to grab its viewport dimensions to pass into the graphicsManager's PreferredBackBuffer Width and Height variables. This data is not available until the device has been initialised.

TestPause ( ) : void

Method Details

Draw() protected method

protected Draw ( SharpDX.Toolkit.GameTime gameTime ) : void
gameTime SharpDX.Toolkit.GameTime
return void

Initialize() protected method

protected Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

OnExiting() protected method

Use this method body to do stuff while the game is exiting.
protected OnExiting ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void

OnHolding() public method

public OnHolding ( GestureRecognizer sender, HoldingEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.HoldingEventArgs
return void

OnManipulationCompleted() public method

public OnManipulationCompleted ( GestureRecognizer sender, ManipulationCompletedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationCompletedEventArgs
return void

OnManipulationStarted() public method

public OnManipulationStarted ( GestureRecognizer sender, ManipulationStartedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationStartedEventArgs
return void

OnManipulationUpdated() public method

public OnManipulationUpdated ( GestureRecognizer sender, ManipulationUpdatedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationUpdatedEventArgs
return void

Project2Game() public method

Initializes a new instance of the Project2Game class.
public Project2Game ( LevelSelection levelSelection ) : System
levelSelection LevelSelection
return System

Tapped() public method

public Tapped ( GestureRecognizer sender, TappedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.TappedEventArgs
return void

Update() protected method

protected Update ( SharpDX.Toolkit.GameTime gameTime ) : void
gameTime SharpDX.Toolkit.GameTime
return void

incScore() public method

public incScore ( int x ) : void
x int
return void

isPaused() public method

public isPaused ( ) : bool
return bool

restartGame() public method

public restartGame ( ) : void
return void

togglePaused() public method

public togglePaused ( ) : void
return void

Property Details

debugDrawer public property

public DebugDrawer,Project2 debugDrawer
return DebugDrawer

level public property

public Level,Project2.GameObjects level
return Project2.GameObjects.Level

models public property

public Dictionary models
return Model>.Dictionary

mouseState public property

public MouseState,SharpDX.Toolkit.Input mouseState
return SharpDX.Toolkit.Input.MouseState