Category : C++ Source Code
Archive   : CPPTUT22.ZIP
Filename : SCHEDULE.H

 
Output of file : SCHEDULE.H contained in archive : CPPTUT22.ZIP
// This takes care of all gate assignments and flight scheduling.
// The players flight is shuffled (changed) each move until he reads
// his ticket. If he gets to the proper gate prior to reading the
// monitor in the waiting area, (reading the monitor at the ticket
// counter doesn't matter), the gates are rescheduled.
//
// The method named check_flight does all of the required checking
// to see that everything was done properly prior to getting on
// the plane. It only does checking if the player is on one of the
// planes.

#ifndef SCHEDULE_H
#define SCHEDULE_H

#include "location.h"

class schedule {

location *gate[4]; // Gate names
int flight_number[4]; // There are four flights [0] to [3]
char *destination[4];
int depart_hour[4];
int depart_minute[4];
int flights_frozen; // Frozen after monitor is read in the
// waiting area
int gates_frozen; // Frozen after ticket is read
int my_gate;

public:

schedule(void);
void shuffle_flights(void);
void shuffle_gates(void);
void list_flights(location *current_location);
void gate_message(location *current_location);
void list_actual_destination(void);
void list_time(int index);
void check_flight(void);

};

#endif



  3 Responses to “Category : C++ Source Code
Archive   : CPPTUT22.ZIP
Filename : SCHEDULE.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/