Ejemplo n.º 1
0
		public void Update()
		{
			if (gamePlaying)
			{
				ctrl.applyConfig ();
				int results = playerList [plIndex].Play (ui);
				if (results == 1)
				{
					if (ui.GetController().GameEnd())
					{
						gamePlaying = false;	
						System.IO.File.Delete ("Savestate.xml");
					} 
					else
					{
						plIndex = (plIndex + 1) % playerList.Count;
						State state = new State ();
						state.getState (ctrl);
						state.saveToXML ();
					}
				}
			}
		}
Ejemplo n.º 2
0
 public void Update()
 {
     if (gamePlaying)
     {
         ctrl.applyConfig();
         int results = playerList [plIndex].Play(ui);
         if (results == 1)
         {
             if (ui.GetController().GameEnd())
             {
                 gamePlaying = false;
                 System.IO.File.Delete("Savestate.xml");
             }
             else
             {
                 plIndex = (plIndex + 1) % playerList.Count;
                 State state = new State();
                 state.getState(ctrl);
                 state.saveToXML();
             }
         }
     }
 }