Exemple #1
0
        private void UpdateMapMenu(GameTime gameTime)
        {
            WorldMapMenu.Update(gameTime);

            string temp = WorldMapMenu.CheckNewTravel();

            if (temp != null && TravelMenu.TurnsLeft == 0)
            {
                if (TravelMenu.StartTravel(temp))
                {
                    ChangeGameState(GameState.TravelMenu);
                    CityInfoMenu.Active = false;
                }
            }

            if (WorldMapMenu.inventoryButton.LeftClick())
            {
                ChangeGameState(GameState.InventoryMenu);
                CityInfoMenu.Active = false;
            }

            if (WorldMapMenu.returnButton.LeftClick())
            {
                RevertGameState();
                CityInfoMenu.Active = false;
            }
        }
Exemple #2
0
 static public bool Update()
 {
     if (active)
     {
         if (exit.LeftClick())
         {
             active = false;
         }
         foreach (City tempCity in WorldMapMenu.Cities)
         {
             if (selected == tempCity.Name)
             {
                 desc = tempCity.Information;
             }
         }
         if (go.LeftClick() && !TravelMenu.travelling)
         {
             if (TravelMenu.StartTravel(selected))
             {
                 return(true);
             }
         }
     }
     return(false);
 }