getState method

int getState()

Implementation

int getState() {
  if (usedState == 1) {
    return 2;
  }
  return 1;
}