Exemplo n.º 1
0
		public NSObject Copy (NSZone zone)
		{
			var board = new Board ();
			board.SetGameModel (this);
			return board;
		}
Exemplo n.º 2
0
		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);
			}
		}
Exemplo n.º 3
0
		void UpdateChipsFromBoard (Board otherBoard)
		{
			Array.Copy (otherBoard.Cells, Cells, Cells.Length);
		}
Exemplo n.º 4
0
		void UpdateChipsFromBoard (Board otherBoard)
		{
			Cells = otherBoard.Cells;
		}