Esempio n. 1
0
        public void New(Settings settings)
        {
            sl.Settings = settings;
            players.Clear();
            powers.Clear();
            actions.Clear();

            players.Add(new Savage(0, settings.DefaultSoldierTypes));
            provinces.Reset(sl.Settings, players);
            provinces.Set(provinces.Select(prov => CreateProvince(prov, players[0])).ToArray());
            provinces.Save();
        }
Esempio n. 2
0
 public bool NextTurn()
 {
     End();
     AllRobotsActions();
     players.Save();
     pr.Save();
     actions.Save();
     return(LivingHumans > 0 && !powers.Last.MajorityReached);
 }
Esempio n. 3
0
 public void NextTurn()
 {
     RobotThinkingIfRobotIsPlaying();
     End();
     AllRobotsactions();
     players.Save();
     pr.Save();
     actions.Save();
 }
Esempio n. 4
0
		public void Finish()
		{
			actions.Save(new ActionQueue(new[] { new Instability() as IAction, new Earnings(), new Mortality() }));
			former.Reset(players);
			players.Clear();
			players.Add(new Savage(0));
			login.Clear();
			game.Finish();

			provinces.Reset(sl.Settings, players);
			provinces.Set(provinces.Select(prov => prov.Revolt()).ToArray());
			provinces.Save();
		}