depthAtLocation static method

int depthAtLocation(
  1. int location
)

Implementation

static int depthAtLocation(int location) {
  if (location == Location.EXTERIOR) return 0;
  if (location == Location.INTERIOR) return 1;
  return NULL_VALUE;
}