samples/13_path_finding_algorithms/04_early_exit/app/main.rb
def process_input
    if state.current_input == :star
      input_star
    elsif state.current_input == :star2
      input_star2
    elsif state.current_input == :target
      input_target
    elsif state.current_input == :target2
      input_target2
    elsif state.current_input == :remove_wall
      input_remove_wall
    elsif state.current_input == :remove_wall2
      input_remove_wall2
    elsif state.current_input == :add_wall
      input_add_wall
    elsif state.current_input == :add_wall2
      input_add_wall2
    end
  end
# Processes click and drag based on what the user is currently dragging
Processes click and drag based on what the user is currently dragging
Processes click and drag based on what the user is currently dragging
def process_input
    if state.current_input == :star
      input_star
    elsif state.current_input == :star2
      input_star2
    elsif state.current_input == :target
      input_target
    elsif state.current_input == :target2
      input_target2
    elsif state.current_input == :remove_wall
      input_remove_wall
    elsif state.current_input == :remove_wall2
      input_remove_wall2
    elsif state.current_input == :add_wall
      input_add_wall
    elsif state.current_input == :add_wall2
      input_add_wall2
    end
  end
def process_input if state . current_input == :star input_star elsif state . current_input == :star2 input_star2 elsif state . current_input == :target input_target elsif state . current_input == :target2 input_target2 elsif state . current_input == :remove_wall input_remove_wall elsif state . current_input == :remove_wall2 input_remove_wall2 elsif state . current_input == :add_wall input_add_wall elsif state . current_input == :add_wall2 input_add_wall2 end end
Processes click and drag based on what the user is currently dragging
Processes click and drag based on what the user is currently dragging