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
Exibir arquivo Open project: Louis-Dureuil/maya-vs-the-world Class Usage Examples

Public Properties

Property Type Description
Position Vector2

Protected Properties

Property Type Description
Content Microsoft.Xna.Framework.Content.ContentManager
parent Scene
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
subScenes List

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Add() public method

public Add ( Scene item ) : void
item Scene
return void

Destroy() public method

public Destroy ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Initialize() public method

public Initialize ( ) : void
return void

Pause() public method

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

Remove() public method

public Remove ( Scene item ) : void
item Scene
return void

Scene() public method

public Scene ( LuxGame game ) : System
game LuxGame
return System

Scene() public method

public Scene ( Scene parent ) : System
parent Scene
return System

Scene_EnabledChanged() public method

public Scene_EnabledChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Scene_VisibleChanged() public method

public Scene_VisibleChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

TooglePause() public method

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

UnPause() public method

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

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

this() public method

public this ( int index ) : Scene
index int
return Scene

Property Details

Content protected_oe property

protected ContentManager,Microsoft.Xna.Framework.Content Content
return Microsoft.Xna.Framework.Content.ContentManager

Position public_oe property

public Vector2 Position
return Vector2

parent protected_oe property

protected Scene,LuxEngine parent
return Scene

spriteFont protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics spriteFont
return Microsoft.Xna.Framework.Graphics.SpriteFont

subScenes protected_oe property

protected List subScenes
return List