// departEvent.h: the Departure class, representing departure events.
// (modified from depart.h)

#ifndef _DEPARTEVENT_H
#define _DEPARTEVENT_H

class DepartureEvent : public Event {
private:

   Cashier *cashier;

public:

   // Constructor.
   // The call "Event (time) is like Java's "super (time)".
   DepartureEvent (double time) : Event (time) { }

   // makeItHappen: departure event routine.
   void makeItHappen ();

   // setCashier: assign a cashier to this departure.
   // -- that is, to the customer the start of service of which schedules
   // this departure.
   void setCashier(Cashier *cashier) { this->cashier = cashier; }
};

#endif
