Midnight Blue Game and Engine
|
Scene active when the player is exploring a given planet. More...
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... | |
Scene active when the player is exploring a given planet.
|
inline |
Initializes a new instance of the T:MidnightBlue.PlanetScene class.
map | Game object map. |
content | Content manager for loading resources. |
planet | Planet to use in this scene. |
|
inlinevirtual |
Draw the tilemap to the specified spriteBatch and uiSpriteBatch.
spriteBatch | Sprite batch to draw world-based entities to. |
uiSpriteBatch | User interface sprite batch. |
Implements MB2D.Scenes.Scene.
|
inlinevirtual |
|
inlinevirtual |
Handles the input for the scene.
Implements MB2D.Scenes.Scene.
|
inlinevirtual |
Sets up the player and physics environment for this planet
Implements MB2D.Scenes.Scene.
|
inlinevirtual |
Instantly pause the scene
Implements MB2D.Scenes.Scene.
|
inlinevirtual |
Instantly resume the scene
Implements MB2D.Scenes.Scene.
|
inlinevirtual |
Updates the players position and state alongside the current biome the player is located at.
Implements MB2D.Scenes.Scene.