Beispiel #1
0
        public Play(LinkedList <Country> countries, LinkedList <RandomEvent> events, Newsticker news)
        {
            this.countries  = countries;
            this.events     = events;
            this.news       = news;
            this.actions    = new LinkedList <Action>();
            this.capital    = new Capital(30000000, 2500000);
            this.lobby      = new Lobby(10, 1);
            this.panel      = FindObjectOfType <InfoPanel>();
            this.tree       = FindObjectOfType <Skilltree>();
            this.display    = FindObjectOfType <CountryDisplay>();
            this.population = 0;
            this.prog       = FindObjectOfType <progresstest>();

            this.random = new System.Random();
            this.extra  = 0;
        }
Beispiel #2
0
 public void Win(bool n = true)
 {
     if (!n)
     {
         endCapital = new Capital(this.random.Next(100000, 100000000), 0);
         endActions = this.random.Next(0, 30);
         endTime    = Game.print.AddYears(this.random.Next(1, 70));
     }
     else
     {
         endCapital = this.capital;
         int f = 0;
         foreach (Action a in this.actions)
         {
             if (a.GetState().Equals(ActionClick.State.Developed))
             {
                 f++;
             }
         }
         endActions = f;
         endTime    = Game.print;
     }
     SceneManager.LoadScene(2);
 }