예제 #1
0
  private void prepareNextLeg() {
    if (state == AT_THE_DEPARTURE_TRANSFER_TERMINAL) {
      state = ENTERING_THE_DEPARTURE_TERMINAL;
      zoneGeneral.setPassengerState(id, state);
    }

    randomSleep(100);

    // Wait until everyone is ready and leave
    zoneEnEx.goingHome(id);
  }
예제 #2
0
  private void goHome() {
    if (state == AT_THE_LUGGAGE_COLLECTION_POINT
        || state == AT_THE_BAGGAGE_RECLAIM_OFFICE
        || state == AT_THE_DISEMBARKING_ZONE) {
      state = EXITING_THE_ARRIVAL_TERMINAL;
      zoneGeneral.setPassengerState(id, state);
    }

    randomSleep(100);

    // Wait until everyone is ready and leave
    zoneEnEx.goingHome(id);
  }