예제 #1
0
 /// <summary>
 /// Invoked when a move has been made
 /// </summary>
 /// <param name="move"></param>
 protected virtual void OnMoveInput(Move move)
 {
     presenter.MakeMove(move, startPosition);
     audio.PlayWavResourceYield("PieceDrop.wav");
 }
 /// <summary>
 /// RenderMove - рендер двигаться
 /// Render the given move
 /// Отрисовать данный ход
 /// </summary>
 /// <param name="move">
 /// The move to render
 /// Ход рендеринга
 /// </param>
 /// <param name="after">
 /// The state the board should be in after the move is rendered
 /// Состояние, в котором доска должна быть после рендеринга хода
 /// </param>
 public void RenderMove(Move move, IBoard after)
 {
     board.Copy(after);
     writer.WriteLine("Move made: {0}", move.ToString());
     presenter.MakeMove(move);
 }