Ejemplo n.º 1
0
 public bool NextMainMission(MainMission CurrentMission)
 {
     if (CurrentMission.IsFinished())
     {
         CurrentMission = CurrentMission.GetNextMission();
         return(true);
     }
     else
     {
         //Current main mission not finished
         return(false);
     }
 }
Ejemplo n.º 2
0
        public Story()
        {
            storyline = new Dictionary <string, Mission>();


            MainMission m3 = new MainMission("[Tutorial] Discover ores.", "Get 25 ore, click on the map to navigate", 100, 0, null, 25, "ore");
            MainMission m2 = new MainMission("[Tutorial] Discover food.", "Get 25 fish, click on the map to navigate", 100, 0, m3, 25, "fish");
            MainMission m1 = new MainMission("[Tutorial] Discover Wood.", "Get 25 wood, click on the map to navigate", 100, 0, m2, 25, "wood");

            currentMission = m1;

            storyline.Add("t_wood", m1);
            storyline.Add("t_fish", m2);
            storyline.Add("t_ore", m3);
        }
Ejemplo n.º 3
0
 public MainMission(String name, String description, int reward, int levelRequired, MainMission nextMission, Mode mode) : base(name, description, reward, mode)
 {
     this.levelRequired = levelRequired;
     this.nextMission   = nextMission;
 }
Ejemplo n.º 4
0
 public bool NextMainMission(MainMission CurrentMission)
 {
     this.currentMission = CurrentMission.nextMission;
     return(true);
 }