C# Класс Project2.Project2Game

Наследование: Game
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
debugDrawer DebugDrawer
level Project2.GameObjects.Level
models Model>.Dictionary
mouseState SharpDX.Toolkit.Input.MouseState

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Draw() защищенный Метод

protected Draw ( SharpDX.Toolkit.GameTime gameTime ) : void
gameTime SharpDX.Toolkit.GameTime
Результат void

Initialize() защищенный Метод

protected Initialize ( ) : void
Результат void

LoadContent() защищенный Метод

protected LoadContent ( ) : void
Результат void

OnExiting() защищенный Метод

Use this method body to do stuff while the game is exiting.
protected OnExiting ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

OnHolding() публичный Метод

public OnHolding ( GestureRecognizer sender, HoldingEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.HoldingEventArgs
Результат void

OnManipulationCompleted() публичный Метод

public OnManipulationCompleted ( GestureRecognizer sender, ManipulationCompletedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationCompletedEventArgs
Результат void

OnManipulationStarted() публичный Метод

public OnManipulationStarted ( GestureRecognizer sender, ManipulationStartedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationStartedEventArgs
Результат void

OnManipulationUpdated() публичный Метод

public OnManipulationUpdated ( GestureRecognizer sender, ManipulationUpdatedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.ManipulationUpdatedEventArgs
Результат void

Project2Game() публичный Метод

Initializes a new instance of the Project2Game class.
public Project2Game ( LevelSelection levelSelection ) : System
levelSelection LevelSelection
Результат System

Tapped() публичный Метод

public Tapped ( GestureRecognizer sender, TappedEventArgs args ) : void
sender Windows.UI.Input.GestureRecognizer
args Windows.UI.Input.TappedEventArgs
Результат void

Update() защищенный Метод

protected Update ( SharpDX.Toolkit.GameTime gameTime ) : void
gameTime SharpDX.Toolkit.GameTime
Результат void

incScore() публичный Метод

public incScore ( int x ) : void
x int
Результат void

isPaused() публичный Метод

public isPaused ( ) : bool
Результат bool

restartGame() публичный Метод

public restartGame ( ) : void
Результат void

togglePaused() публичный Метод

public togglePaused ( ) : void
Результат void

Описание свойств

debugDrawer публичное свойство

public DebugDrawer,Project2 debugDrawer
Результат DebugDrawer

level публичное свойство

public Level,Project2.GameObjects level
Результат Project2.GameObjects.Level

models публичное свойство

public Dictionary models
Результат Model>.Dictionary

mouseState публичное свойство

public MouseState,SharpDX.Toolkit.Input mouseState
Результат SharpDX.Toolkit.Input.MouseState