Midnight Blue Game and Engine
Public Member Functions | List of all members
MidnightBlue.InitScene Class Reference

The scene shown at the title screen. More...

Inheritance diagram for MidnightBlue.InitScene:
Inheritance graph
Collaboration diagram for MidnightBlue.InitScene:
Collaboration graph

Public Member Functions

 InitScene (EntityMap map, ContentManager content)
 Initializes a new instance of the T:MidnightBlue.InitScene class. Loads all blueprints and setup data. More...
 
override void Initialize ()
 Registers all blueprints to the EntityMap More...
 
override void HandleInput ()
 Handles the input for the scene. More...
 
override void Update ()
 Updates the scene. More...
 
override void Draw (SpriteBatch spriteBatch, SpriteBatch uiSpriteBatch)
 Draws the scene to the uiSpriteBatch More...
 
override void Exit ()
 Exits the scene. More...
 
override void Pause ()
 Pauses the scene. More...
 
override void Resume ()
 Resumes the scene. More...
 
- Public Member Functions inherited from MB2D.Scenes.Scene
 Scene (EntityMap gameObjects, ContentManager content)
 Initializes a new instance of the T:MB2D.Scenes.Scene class with a pre-existing EntityMap More...
 
void UpdateTransition ()
 
void Cleanup ()
 Cleans up the scene and unloads content. More...
 

Additional Inherited Members

- Properties inherited from MB2D.Scenes.Scene
EntityMap GameObjects [get]
 Gets all entities allocated to the scene More...
 
TransitionState TransitionState [get, set]
 Gets or sets the current transition state of the scene. This causes the scene stack to change the scenes state on the next frame. More...
 
TransitionState PreviousTransitionState [get]
 Gets the state the scene was in during the last frame. More...
 
Color WindowBackgroundColor [get, set]
 Gets or sets the color of the window background for this scene. More...
 
SceneStack SceneController [get, set]
 Gets or sets the scene controller. More...
 
ContentManager Content [get]
 Gets the content manager for loading and unloading resources. More...
 
float DeltaTime [get, set]
 Gets or sets the delta time value. More...
 

Detailed Description

The scene shown at the title screen.

Constructor & Destructor Documentation

§ InitScene()

MidnightBlue.InitScene.InitScene ( EntityMap  map,
ContentManager  content 
)
inline

Initializes a new instance of the T:MidnightBlue.InitScene class. Loads all blueprints and setup data.

Parameters
mapGame objects.
contentContent manager for loading textures and sounds.

Member Function Documentation

§ Draw()

override void MidnightBlue.InitScene.Draw ( SpriteBatch  spriteBatch,
SpriteBatch  uiSpriteBatch 
)
inlinevirtual

Draws the scene to the uiSpriteBatch

Parameters
spriteBatchSprite batch for world-based entities.
uiSpriteBatchUser interface sprite batch.

Implements MB2D.Scenes.Scene.

§ Exit()

override void MidnightBlue.InitScene.Exit ( )
inlinevirtual

Exits the scene.

Implements MB2D.Scenes.Scene.

§ HandleInput()

override void MidnightBlue.InitScene.HandleInput ( )
inlinevirtual

Handles the input for the scene.

Implements MB2D.Scenes.Scene.

§ Initialize()

override void MidnightBlue.InitScene.Initialize ( )
inlinevirtual

Registers all blueprints to the EntityMap

Implements MB2D.Scenes.Scene.

Here is the call graph for this function:

§ Pause()

override void MidnightBlue.InitScene.Pause ( )
inlinevirtual

Pauses the scene.

Implements MB2D.Scenes.Scene.

§ Resume()

override void MidnightBlue.InitScene.Resume ( )
inlinevirtual

Resumes the scene.

Implements MB2D.Scenes.Scene.

Here is the call graph for this function:

§ Update()

override void MidnightBlue.InitScene.Update ( )
inlinevirtual

Updates the scene.

Implements MB2D.Scenes.Scene.


The documentation for this class was generated from the following file: