public override void WalkCommand (IBoardWalkCommand command) { command.Exec (command.PossiblePoints.IndexOf(m_target)); }
public override void WalkCommand (IBoardWalkCommand command) { var index = command.PossiblePoints.IndexOf (m_target); if(index >= 0) Result = command.Exec (index); }