C# Class WarTornLands.Game1

Dies ist der Haupttyp für Ihr Spiel
Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: floAr/WarTornLands Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
Game1 ( ) : System
Game1 ( ) : WarTornLands.DEBUG
SetLevel ( Level level ) : void

Méthodes protégées

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

Private Methods

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

Method Details

Draw() protected méthode

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.
Résultat void

Game1() public méthode

public Game1 ( ) : System
Résultat System

Game1() public méthode

public Game1 ( ) : WarTornLands.DEBUG
Résultat WarTornLands.DEBUG

Initialize() protected méthode

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
Résultat void

LoadContent() protected méthode

LoadContent wird einmal pro Spiel aufgerufen und ist der Platz, wo Ihr gesamter Content geladen wird.
protected LoadContent ( ) : void
Résultat void

SetLevel() public méthode

public SetLevel ( Level level ) : void
level Level
Résultat void

UnloadContent() protected méthode

UnloadContent wird einmal pro Spiel aufgerufen und ist der Ort, wo Ihr gesamter Content entladen wird.
protected UnloadContent ( ) : void
Résultat void

Update() protected méthode

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.
Résultat void

Property Details

GlobalLog public_oe static_oe property

public static ScreenLogComponent GlobalLog
Résultat ScreenLogComponent

_blackHoleTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _blackHoleTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_cestTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _cestTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_currentLevel public_oe property

public Level,WarTornLands _currentLevel
Résultat Level

_deadTreeTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _deadTreeTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_gruselUteTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _gruselUteTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_input public_oe property

public InputManager,WarTornLands _input
Résultat InputManager

_player public_oe property

public Player,WarTornLands.PlayerClasses _player
Résultat WarTornLands.PlayerClasses.Player

_potionTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _potionTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_spriteBatch public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics _spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch

_tileSetTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _tileSetTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_treeTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _treeTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D