/// <summary> /// Execute l'action pour tester ses consequences /// </summary> public void MockExecute(Board board) { // On veut garder intacte la séquence initiale TokenMoveSequence copySequence = new TokenMoveSequence(m_sequence); copySequence.TokenAttached = board.Tokens[copySequence.OriginPosition.Y, copySequence.OriginPosition.X]; while (copySequence != null && !copySequence.Empty()) { board.ExecuteTokenMove(copySequence.TokenAttached, copySequence.PlayMove()); } if ((copySequence.TokenAttached.Color == Token.TokenColor.White && copySequence.TokenAttached.Position.Y == 0) || (copySequence.TokenAttached.Color == Token.TokenColor.Black && copySequence.TokenAttached.Position.Y == 9)) { board.Crown(copySequence.TokenAttached); } }
public void AddNewQueenSequence(TokenMoveSequence newQueenSequence) { m_newQueenSequence = newQueenSequence; }
public Effector(TokenMoveSequence sequence) { m_sequence = sequence; m_newQueenSequence = null; }