C# Class Project2.Project2Game

Inheritance: Game
Afficher le fichier Open project: nuclearpidgeon/graphicsproj2 Class Usage Examples

Méthodes publiques

Свойство Type Description
debugDrawer DebugDrawer
level Project2.GameObjects.Level
models Model>.Dictionary
mouseState SharpDX.Toolkit.Input.MouseState

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected Draw ( SharpDX.Toolkit.GameTime gameTime ) : void
gameTime SharpDX.Toolkit.GameTime
Résultat void

Initialize() protected méthode

protected Initialize ( ) : void
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

OnExiting() protected méthode

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

OnHolding() public méthode

public OnHolding ( GestureRecognizer sender, HoldingEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.HoldingEventArgs
Résultat void

OnManipulationCompleted() public méthode

public OnManipulationCompleted ( GestureRecognizer sender, ManipulationCompletedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationCompletedEventArgs
Résultat void

OnManipulationStarted() public méthode

public OnManipulationStarted ( GestureRecognizer sender, ManipulationStartedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationStartedEventArgs
Résultat void

OnManipulationUpdated() public méthode

public OnManipulationUpdated ( GestureRecognizer sender, ManipulationUpdatedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationUpdatedEventArgs
Résultat void

Project2Game() public méthode

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

Tapped() public méthode

public Tapped ( GestureRecognizer sender, TappedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.TappedEventArgs
Résultat void

Update() protected méthode

protected Update ( SharpDX.Toolkit.GameTime gameTime ) : void
gameTime SharpDX.Toolkit.GameTime
Résultat void

incScore() public méthode

public incScore ( int x ) : void
x int
Résultat void

isPaused() public méthode

public isPaused ( ) : bool
Résultat bool

restartGame() public méthode

public restartGame ( ) : void
Résultat void

togglePaused() public méthode

public togglePaused ( ) : void
Résultat void

Property Details

debugDrawer public_oe property

public DebugDrawer,Project2 debugDrawer
Résultat DebugDrawer

level public_oe property

public Level,Project2.GameObjects level
Résultat Project2.GameObjects.Level

models public_oe property

public Dictionary models
Résultat Model>.Dictionary

mouseState public_oe property

public MouseState,SharpDX.Toolkit.Input mouseState
Résultat SharpDX.Toolkit.Input.MouseState