Esempio n. 1
0
 private void NewGame()
 {
     Models.Game currentGame = CreateNewGame();
     AddCharactersToGame(currentGame);
     GameAuth.SetCurrentGame(currentGame);
     StaticBooleans.SetHasNewGame(true);
     StaticBooleans.SetIsGameMenuInitializedBool(false);
 }
Esempio n. 2
0
 public void Update(ContentManager Content, GameTime gameTime)
 {
     if (!StaticBooleans.IsShopOpen)
     {
         foreach (Button button in buttons)
         {
             button.Update();
         }
     }
     if (StaticBooleans.IsLoadGamesOn && StaticBooleans.HasNewGame)
     {
         loadGameScreen.Initialize();
         loadGameScreen.LoadContent(Content);
         StaticBooleans.SetHasNewGame(false);
     }
     if (StaticBooleans.IsLoadGamesOn && !StaticBooleans.IsShopOpen)
     {
         loadGameScreen.Update();
     }
     if (StaticBooleans.IsStatGamesOn)
     {
         loadStatGameScreen.Initialize();
         loadStatGameScreen.LoadContent(Content);
         StaticBooleans.SetHasNewGame(false);
     }
     if (StaticBooleans.IsStatGamesOn && !StaticBooleans.IsShopOpen)
     {
         loadStatGameScreen.Update();
     }
     if (GameAuth.HasStartedGame() && !StaticBooleans.IsGameMenuInitialized)
     {
         gameMenu.Initialize();
         gameMenu.LoadContent(Content);
         StaticBooleans.SetIsGameMenuInitializedBool(true);
     }
     if (GameAuth.HasStartedGame())
     {
         gameMenu.Update(Content, gameTime);
     }
 }
Esempio n. 3
0
 private void LoadGame(Models.Game game)
 {
     Models.Game currentGame = game;
     GameAuth.SetCurrentGame(currentGame);
     StaticBooleans.SetIsGameMenuInitializedBool(false);
 }