示例#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);
			}
		}
示例#3
0
		void UpdateChipsFromBoard (Board otherBoard)
		{
			Array.Copy (otherBoard.Cells, Cells, Cells.Length);
		}
示例#4
0
		void UpdateChipsFromBoard (Board otherBoard)
		{
			Cells = otherBoard.Cells;
		}