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

Scene active when the player is exploring a given planet. More...

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

Public Member Functions

 PlanetScene (EntityMap map, ContentManager content, Planet planet)
 Initializes a new instance of the T:MidnightBlue.PlanetScene class. More...
 
override void Initialize ()
 Sets up the player and physics environment for this planet More...
 
override void HandleInput ()
 Handles the input for the scene. More...
 
override void Update ()
 Updates the players position and state alongside the current biome the player is located at. More...
 
override void Draw (SpriteBatch spriteBatch, SpriteBatch uiSpriteBatch)
 Draw the tilemap to the specified spriteBatch and uiSpriteBatch. More...
 
override void Exit ()
 Exit this scene. More...
 
override void Pause ()
 Instantly pause the scene More...
 
override void Resume ()
 Instantly resume 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

Scene active when the player is exploring a given planet.

Constructor & Destructor Documentation

§ PlanetScene()

MidnightBlue.PlanetScene.PlanetScene ( EntityMap  map,
ContentManager  content,
Planet  planet 
)
inline

Initializes a new instance of the T:MidnightBlue.PlanetScene class.

Parameters
mapGame object map.
contentContent manager for loading resources.
planetPlanet to use in this scene.
Here is the call graph for this function:

Member Function Documentation

§ Draw()

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

Draw the tilemap to the specified spriteBatch and uiSpriteBatch.

Parameters
spriteBatchSprite batch to draw world-based entities to.
uiSpriteBatchUser interface sprite batch.

Implements MB2D.Scenes.Scene.

Here is the call graph for this function:

§ Exit()

override void MidnightBlue.PlanetScene.Exit ( )
inlinevirtual

Exit this scene.

Implements MB2D.Scenes.Scene.

Here is the call graph for this function:

§ HandleInput()

override void MidnightBlue.PlanetScene.HandleInput ( )
inlinevirtual

Handles the input for the scene.

Implements MB2D.Scenes.Scene.

Here is the call graph for this function:

§ Initialize()

override void MidnightBlue.PlanetScene.Initialize ( )
inlinevirtual

Sets up the player and physics environment for this planet

Implements MB2D.Scenes.Scene.

§ Pause()

override void MidnightBlue.PlanetScene.Pause ( )
inlinevirtual

Instantly pause the scene

Implements MB2D.Scenes.Scene.

§ Resume()

override void MidnightBlue.PlanetScene.Resume ( )
inlinevirtual

Instantly resume the scene

Implements MB2D.Scenes.Scene.

§ Update()

override void MidnightBlue.PlanetScene.Update ( )
inlinevirtual

Updates the players position and state alongside the current biome the player is located at.

Implements MB2D.Scenes.Scene.

Here is the call graph for this function:

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