C# Class LuxEngine.Scene

A generic graphical component that has a parent and children. Components that have hierarchical relations should inherits this class. Inherits from DrawableGameComponent.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: Louis-Dureuil/maya-vs-the-world Class Usage Examples

Méthodes publiques

Свойство Type Description
Position Vector2

Protected Properties

Свойство Type Description
Content Microsoft.Xna.Framework.Content.ContentManager
parent Scene
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
subScenes List

Méthodes publiques

Méthode Description
Add ( Scene item ) : void
Destroy ( ) : void
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
Pause ( Scene sender, EventArgs e ) : void

Pause the game, then fire the Paused event.

Remove ( Scene item ) : void
Scene ( LuxGame game ) : System
Scene ( Scene parent ) : System
Scene_EnabledChanged ( object sender, EventArgs e ) : void
Scene_VisibleChanged ( object sender, EventArgs e ) : void
TooglePause ( Scene sender, EventArgs e ) : void

Toogle the paused state of the scene.

UnPause ( Scene sender, EventArgs e ) : void

unpause the game, then fire the Unpaused event.

Update ( GameTime gameTime ) : void
this ( int index ) : Scene

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Add() public méthode

public Add ( Scene item ) : void
item Scene
Résultat void

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Pause() public méthode

Pause the game, then fire the Paused event.
public Pause ( Scene sender, EventArgs e ) : void
sender Scene
e System.EventArgs
Résultat void

Remove() public méthode

public Remove ( Scene item ) : void
item Scene
Résultat void

Scene() public méthode

public Scene ( LuxGame game ) : System
game LuxGame
Résultat System

Scene() public méthode

public Scene ( Scene parent ) : System
parent Scene
Résultat System

Scene_EnabledChanged() public méthode

public Scene_EnabledChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Scene_VisibleChanged() public méthode

public Scene_VisibleChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

TooglePause() public méthode

Toogle the paused state of the scene.
public TooglePause ( Scene sender, EventArgs e ) : void
sender Scene
e System.EventArgs
Résultat void

UnPause() public méthode

unpause the game, then fire the Unpaused event.
public UnPause ( Scene sender, EventArgs e ) : void
sender Scene
e System.EventArgs
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

this() public méthode

public this ( int index ) : Scene
index int
Résultat Scene

Property Details

Content protected_oe property

protected ContentManager,Microsoft.Xna.Framework.Content Content
Résultat Microsoft.Xna.Framework.Content.ContentManager

Position public_oe property

public Vector2 Position
Résultat Vector2

parent protected_oe property

protected Scene,LuxEngine parent
Résultat Scene

spriteFont protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics spriteFont
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

subScenes protected_oe property

protected List subScenes
Résultat List