setAllLocationsIfNull method

void setAllLocationsIfNull(
  1. int locValue
)

Implementation

void setAllLocationsIfNull(int locValue) {
  for (int i = 0; i < location.length; i++) {
    if (location[i] == Location.NONE) location[i] = locValue;
  }
}