C# Класс WarTornLands.Game1

Dies ist der Haupttyp für Ihr Spiel
Наследование: Microsoft.Xna.Framework.Game
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
GlobalLog ScreenLogComponent
_blackHoleTexture Microsoft.Xna.Framework.Graphics.Texture2D
_cestTexture Microsoft.Xna.Framework.Graphics.Texture2D
_currentLevel Level
_deadTreeTexture Microsoft.Xna.Framework.Graphics.Texture2D
_gruselUteTexture Microsoft.Xna.Framework.Graphics.Texture2D
_input InputManager
_player WarTornLands.PlayerClasses.Player
_potionTexture Microsoft.Xna.Framework.Graphics.Texture2D
_spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
_tileSetTexture Microsoft.Xna.Framework.Graphics.Texture2D
_treeTexture Microsoft.Xna.Framework.Graphics.Texture2D

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

Метод Описание
Game1 ( ) : System
Game1 ( ) : WarTornLands.DEBUG
SetLevel ( Level level ) : void

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

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

Dies wird aufgerufen, wenn das Spiel selbst zeichnen soll.

Initialize ( ) : void

Ermöglicht dem Spiel, alle Initialisierungen durchzuführen, die es benötigt, bevor die Ausführung gestartet wird. Hier können erforderliche Dienste abgefragt und alle nicht mit Grafiken verbundenen Inhalte geladen werden. Bei Aufruf von base.Initialize werden alle Komponenten aufgezählt sowie initialisiert.

LoadContent ( ) : void

LoadContent wird einmal pro Spiel aufgerufen und ist der Platz, wo Ihr gesamter Content geladen wird.

UnloadContent ( ) : void

UnloadContent wird einmal pro Spiel aufgerufen und ist der Ort, wo Ihr gesamter Content entladen wird.

Update ( GameTime gameTime ) : void

Ermöglicht dem Spiel die Ausführung der Logik, wie zum Beispiel Aktualisierung der Welt, Überprüfung auf Kollisionen, Erfassung von Eingaben und Abspielen von Ton.

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

Метод Описание
DebugDraw ( GameTime gameTime ) : void
FreezeGame ( ) : void
OnQuit ( object sender, EventArgs e ) : void
PopState ( ) : void
PushState ( BaseGameState newState ) : void
UpdateRes ( ) : void

Sets a vector indicating the screen resolution. Call this whenever the ApplyChanges for the graphics device is called.

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

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

Dies wird aufgerufen, wenn das Spiel selbst zeichnen soll.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Bietet einen Schnappschuss der Timing-Werte.
Результат void

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

public Game1 ( ) : System
Результат System

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

public Game1 ( ) : WarTornLands.DEBUG
Результат WarTornLands.DEBUG

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

Ermöglicht dem Spiel, alle Initialisierungen durchzuführen, die es benötigt, bevor die Ausführung gestartet wird. Hier können erforderliche Dienste abgefragt und alle nicht mit Grafiken verbundenen Inhalte geladen werden. Bei Aufruf von base.Initialize werden alle Komponenten aufgezählt sowie initialisiert.
protected Initialize ( ) : void
Результат void

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

LoadContent wird einmal pro Spiel aufgerufen und ist der Platz, wo Ihr gesamter Content geladen wird.
protected LoadContent ( ) : void
Результат void

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

public SetLevel ( Level level ) : void
level Level
Результат void

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

UnloadContent wird einmal pro Spiel aufgerufen und ist der Ort, wo Ihr gesamter Content entladen wird.
protected UnloadContent ( ) : void
Результат void

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

Ermöglicht dem Spiel die Ausführung der Logik, wie zum Beispiel Aktualisierung der Welt, Überprüfung auf Kollisionen, Erfassung von Eingaben und Abspielen von Ton.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Bietet einen Schnappschuss der Timing-Werte.
Результат void

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

GlobalLog публичное статическое свойство

public static ScreenLogComponent GlobalLog
Результат ScreenLogComponent

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

public Texture2D,Microsoft.Xna.Framework.Graphics _blackHoleTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public Texture2D,Microsoft.Xna.Framework.Graphics _cestTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public Level,WarTornLands _currentLevel
Результат Level

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

public Texture2D,Microsoft.Xna.Framework.Graphics _deadTreeTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public Texture2D,Microsoft.Xna.Framework.Graphics _gruselUteTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public InputManager,WarTornLands _input
Результат InputManager

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

public Player,WarTornLands.PlayerClasses _player
Результат WarTornLands.PlayerClasses.Player

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

public Texture2D,Microsoft.Xna.Framework.Graphics _potionTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public SpriteBatch,Microsoft.Xna.Framework.Graphics _spriteBatch
Результат Microsoft.Xna.Framework.Graphics.SpriteBatch

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

public Texture2D,Microsoft.Xna.Framework.Graphics _tileSetTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public Texture2D,Microsoft.Xna.Framework.Graphics _treeTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D