aboutsummaryrefslogtreecommitdiff
path: root/Super Polarity/ScreenManager.cs
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2014-02-03 10:06:44 -0600
committerBen Beltran <ben@nsovocal.com>2014-02-03 10:06:44 -0600
commit4fc09567c557a1110180940cca40fd7144921026 (patch)
tree5fb7b0b787b739a3f4a2785651c69219a8318ab0 /Super Polarity/ScreenManager.cs
parent0cafec445af0a97d96feb1a1daefa1486142c73f (diff)
Removes spaces.
Diffstat (limited to 'Super Polarity/ScreenManager.cs')
-rw-r--r--Super Polarity/ScreenManager.cs55
1 files changed, 0 insertions, 55 deletions
diff --git a/Super Polarity/ScreenManager.cs b/Super Polarity/ScreenManager.cs
deleted file mode 100644
index b88741b..0000000
--- a/Super Polarity/ScreenManager.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Microsoft.Xna.Framework;
-using Microsoft.Xna.Framework.Graphics;
-
-namespace SuperPolarity
-{
- static class ScreenManager
- {
- static Stack<Screen> Screens;
- static SuperPolarity Game;
-
- static ScreenManager()
- {
- Screens = new Stack<Screen>();
- }
-
- static public void Push(Screen screen)
- {
- if (Screens.Count > 0)
- {
- Screens.Peek().Active = false;
- }
-
- screen.LoadContent();
- screen.Active = true;
- Screens.Push(screen);
- }
-
- static public void Pop()
- {
- var screen = Screens.Pop();
- screen.Active = false;
- screen.CleanUp();
- Screens.Peek().Active = true;
- }
-
- static public void Update(GameTime gameTime)
- {
- Screens.Peek().Update(gameTime);
- }
-
- static public void Draw(SpriteBatch spriteBatch)
- {
- Screens.Peek().Draw(spriteBatch);
- }
-
- internal static void SetGame(SuperPolarity game)
- {
- Game = game;
- }
- }
-}