Beispiel #1
0
		public NSObject Copy (NSZone zone)
		{
			var board = new Board ();
			board.SetGameModel (this);
			return board;
		}
		void ResetBoard ()
		{
			board = new Board ();
			foreach (UIButton button in columnButtons)
				UpdateButton (button);

			UpdateUI ();
			strategist.GameModel = board;

			foreach (var innerArray in chipLayers) {
				for (int j = 0; j < innerArray.Length; j++)
					innerArray [j]?.RemoveFromSuperLayer ();
				Array.Clear (innerArray, 0, innerArray.Length);
			}
		}
Beispiel #3
0
		void UpdateChipsFromBoard (Board otherBoard)
		{
			Array.Copy (otherBoard.Cells, Cells, Cells.Length);
		}
Beispiel #4
0
		void UpdateChipsFromBoard (Board otherBoard)
		{
			Cells = otherBoard.Cells;
		}