Midnight Blue Game and Engine
|
Holds all logic and data for a single game screen More...
Public Member Functions | |
Scene (EntityMap gameObjects, ContentManager content) | |
Initializes a new instance of the T:MB2D.Scenes.Scene class with a pre-existing EntityMap More... | |
void | UpdateTransition () |
abstract void | Initialize () |
Initialize this scene and loads all resources. Runs logic to execute during the Initializing state. Set state to None to end. More... | |
abstract void | HandleInput () |
Handles all input for the scene More... | |
abstract void | Update () |
Updates game logic and changes scene state. More... | |
abstract void | Pause () |
Runs logic to execute while the scene is in the Pausing state. Set state to None to end. More... | |
abstract void | Resume () |
Runs logic to execute while the scene is in the Resuming state. Set state to None to end. More... | |
abstract void | Draw (SpriteBatch spriteBatch, SpriteBatch uiSpriteBatch) |
Draws entities and UI elements to the specfied SpriteBatches More... | |
abstract void | Exit () |
Runs logic to execute while the scene is in the Exiting state. Set state to Null to end. More... | |
void | Cleanup () |
Cleans up the scene and unloads content. More... | |
Properties | |
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... | |
Holds all logic and data for a single game screen
|
inline |
Initializes a new instance of the T:MB2D.Scenes.Scene class with a pre-existing EntityMap
gameObjects | EntityMap to assign to the scene. |
|
inline |
Cleans up the scene and unloads content.
|
pure virtual |
Draws entities and UI elements to the specfied SpriteBatches
spriteBatch | World-coordinate based sprite batch. |
uiSpriteBatch | Camera-based User Interface sprite batch. |
Implemented in MidnightBlue.GalaxyScene, MidnightBlue.PlanetScene, MidnightBlue.StarSystemScene, MidnightBlue.InitScene, MidnightBlue.TitleScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
pure virtual |
Runs logic to execute while the scene is in the Exiting state. Set state to Null to end.
Implemented in MidnightBlue.StarSystemScene, MidnightBlue.GalaxyScene, MidnightBlue.PlanetScene, MidnightBlue.InitScene, MidnightBlue.TitleScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
pure virtual |
Handles all input for the scene
Implemented in MidnightBlue.GalaxyScene, MidnightBlue.StarSystemScene, MidnightBlue.PlanetScene, MidnightBlue.InitScene, MidnightBlue.TitleScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
pure virtual |
Initialize this scene and loads all resources. Runs logic to execute during the Initializing state. Set state to None to end.
Implemented in MidnightBlue.StarSystemScene, MidnightBlue.GalaxyScene, MidnightBlue.PlanetScene, MidnightBlue.TitleScene, MidnightBlue.InitScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
pure virtual |
Runs logic to execute while the scene is in the Pausing state. Set state to None to end.
Implemented in MidnightBlue.StarSystemScene, MidnightBlue.GalaxyScene, MidnightBlue.PlanetScene, MidnightBlue.InitScene, MidnightBlue.TitleScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
pure virtual |
Runs logic to execute while the scene is in the Resuming state. Set state to None to end.
Implemented in MidnightBlue.StarSystemScene, MidnightBlue.GalaxyScene, MidnightBlue.PlanetScene, MidnightBlue.TitleScene, MidnightBlue.InitScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
pure virtual |
Updates game logic and changes scene state.
Implemented in MidnightBlue.GalaxyScene, MidnightBlue.StarSystemScene, MidnightBlue.PlanetScene, MidnightBlue.InitScene, MidnightBlue.TitleScene, MidnightBlue.MenuScene, MidnightBlue.Testing.MapTest, and MB2D.Testing.UITest.
|
getprotected |
Gets the content manager for loading and unloading resources.
The content manager.
|
getset |
Gets or sets the delta time value.
The delta time.
|
get |
Gets all entities allocated to the scene
The game objects.
|
get |
Gets the state the scene was in during the last frame.
The state of the previous transition.
|
getset |
Gets or sets the scene controller.
The scene controller.
|
getset |
Gets or sets the current transition state of the scene. This causes the scene stack to change the scenes state on the next frame.
The transition state.
|
getset |
Gets or sets the color of the window background for this scene.
The color of the window background.