C# Класс Swordening.InGame

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

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

Свойство Тип Описание
camera CameraAndLights
liveGrid LiveGrid
mapGrid MapGrid

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

Метод Описание
Draw ( GameTime gameTime ) : void

Draw the in-game GUI.

InGame ( SwordeningGame game ) : System
Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

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

Метод Описание
LoadContent ( ) : void
ProcessKeyboardInput ( GameTime gameTime ) : void

Reads and processes the input from the keyboard.

ProcessMouseInput ( GameTime gameTime ) : void

Reads and processes the input from the keyboard.

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

Метод Описание
AddEnemy ( ) : void
UpdateCamera ( ) : void

Updates the camera's position to look at the player.

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

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

Draw the in-game GUI.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

public InGame ( SwordeningGame game ) : System
game SwordeningGame
Результат System

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

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
Результат void

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

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

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

Reads and processes the input from the keyboard.
protected ProcessKeyboardInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

Reads and processes the input from the keyboard.
protected ProcessMouseInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void

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

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

public CameraAndLights,Swordening camera
Результат CameraAndLights

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

public LiveGrid,Swordening liveGrid
Результат LiveGrid

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

public MapGrid,Swordening mapGrid
Результат MapGrid