Ejemplo n.º 1
0
 public void AddScreen(GameScreen screen, PlayerIndex? controllingPlayer)
 {
     screen.ControllingPlayer = controllingPlayer;
     screen.ScreenManager = this;
     screens.Add(screen);
     screen.Initialize();
     screen.LoadContent(); // TODO: Move to loading screen
 }
Ejemplo n.º 2
0
 public ScreenProxy(GameScreen now, GameScreen after)
 {
     Now = now;
     After = after;
 }
Ejemplo n.º 3
0
 public void ReplaceScreenProxy(GameScreen now, GameScreen after, PlayerIndex? controllingPlayer)
 {
     ReplaceScreen(new ScreenProxy(now, after), controllingPlayer);
 }
Ejemplo n.º 4
0
 public void ReplaceScreen(GameScreen screen, PlayerIndex? controllingPlayer)
 {
     //if (screens.Count > 0) RemoveScreen(screens[screens.Count - 1]);
     if (screens.Count > 0) screens[screens.Count - 1].ExitScreen();
     AddScreen(screen, controllingPlayer);
 }
Ejemplo n.º 5
0
 public void ReplaceAllScreens(GameScreen screen, PlayerIndex? controllingPlayer)
 {
     ClearScreens();
     AddScreen(screen, controllingPlayer);
 }
Ejemplo n.º 6
0
 public void RemoveScreen(GameScreen screen)
 {
     screen.UnloadContent();
     screens.Remove(screen);
     //screen.ExitScreen();
 }
Ejemplo n.º 7
0
 private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad)
 {
     this.loadingIsSlow = loadingIsSlow;
     this.screensToLoad = screensToLoad;
 }