C# 클래스 WarTornLands.Game1

Dies ist der Haupttyp für Ihr Spiel
상속: Microsoft.Xna.Framework.Game
파일 보기 프로젝트 열기: floAr/WarTornLands 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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