/**
   * The method to use a code card. If the robot is in a place which contains a street in the
   * direction he is looking at, then the street is opened or closed if the street code and the card
   * code match
   *
   * @return If the codecard can complete the action of opening or closing a street. Otherwise it
   *     returns false
   */
  @Override
  public boolean use(RobotEngine r, NavigationModule nav) {
    boolean ok = false;
    Street calle = nav.getHeadingStreet();

    if (calle != null) {
      if (calle.isOpen()) ok = calle.close(this);
      else ok = calle.open(this);
    }

    return ok;
  }