isNull method

bool isNull()

@return true if all locations are NULL

Implementation

bool isNull() {
  for (int i = 0; i < location.length; i++) {
    if (location[i] != Location.NONE) return false;
  }
  return true;
}