Пример #1
0
 public void PlayNextLocationStory(string curlocation)
 {
     Screen s = null;
     switch (curlocation)
     {
         case "uluru":
             s = new FranceStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "paris":
             s = new GermanyStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "bavaria":
             s = new VesuviusStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "vesuvius":
             s = new PolarStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
     }
 }
Пример #2
0
 public void PlayCurrentLocationSotry(string curlocation)
 {
     Screen s = null;
     switch (curlocation)
     {
         case "uluru":
             List<string> pages = new List<string>();
             for (int i = 1; i < 9; i++)
                 pages.Add("Story/australia/p" + i);
             s = new StoryScreen(pages);
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "paris":
             s = new FranceStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "bavaria":
             s = new GermanyStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "vesuvius":
             s = new VesuviusStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
         case "polar":
             s = new PolarStory();
             s.Initialize(Content);
             ScreenManager.Get.AddScreen(s);
             break;
     }
 }