Пример #1
0
  private void reportMissingBags(int bags) {
    if (state == AT_THE_LUGGAGE_COLLECTION_POINT) {
      state = AT_THE_BAGGAGE_RECLAIM_OFFICE;
      zoneGeneral.setPassengerState(id, state);
    }

    randomSleep(100);

    // Report luggage missing
    zoneLug.reportLuggageMissing(bags);

    goHome();
  }
Пример #2
0
  private void goCollectABag() {
    if (state == AT_THE_DISEMBARKING_ZONE) {
      state = AT_THE_LUGGAGE_COLLECTION_POINT;
      zoneGeneral.setPassengerState(id, state);
    }

    randomSleep(100);

    // Pick up all his luggage
    luggageMissing -= zoneLug.getLuggage(id, luggageMissing);

    // If no lost bags
    if (luggageMissing == 0) {
      goHome();
    } // If any bags lost
    else {
      reportMissingBags(luggageMissing);
    }
  }