C# Class WarTornLands.Game1

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

Public Properties

Property 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

Public Methods

Method Description
Game1 ( ) : System
Game1 ( ) : WarTornLands.DEBUG
SetLevel ( Level level ) : void

Protected Methods

Method 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

Method 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 method

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.
return void

Game1() public method

public Game1 ( ) : System
return System

Game1() public method

public Game1 ( ) : WarTornLands.DEBUG
return WarTornLands.DEBUG

Initialize() protected method

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
return void

LoadContent() protected method

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

SetLevel() public method

public SetLevel ( Level level ) : void
level Level
return void

UnloadContent() protected method

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

Update() protected method

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.
return void

Property Details

GlobalLog public_oe static_oe property

public static ScreenLogComponent GlobalLog
return ScreenLogComponent

_blackHoleTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _blackHoleTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_cestTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _cestTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_currentLevel public_oe property

public Level,WarTornLands _currentLevel
return Level

_deadTreeTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _deadTreeTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_gruselUteTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _gruselUteTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_input public_oe property

public InputManager,WarTornLands _input
return InputManager

_player public_oe property

public Player,WarTornLands.PlayerClasses _player
return WarTornLands.PlayerClasses.Player

_potionTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _potionTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_spriteBatch public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics _spriteBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch

_tileSetTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _tileSetTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_treeTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _treeTexture
return Microsoft.Xna.Framework.Graphics.Texture2D