isStatusInRange method

bool isStatusInRange(
  1. int statusInit,
  2. int statusEnd
)

Returns true if this status is in range of parameters statusInit and statusEnd.

Implementation

bool isStatusInRange(int statusInit, int statusEnd) {
  return status >= statusInit && status <= statusEnd;
}