/*------------------------------------------------------------------------------
Description: RegularShift Class for Detail Scheduler
Author: Chris Huyler, Tim Cross
Language: C++
Name: RegularShift.h
Date: March 22, 2000
------------------------------------------------------------------------------*/


class RegularShift:public Shift {
	public:
      RegularShift();
      RegularShift(int d,int s,int e,char *des,int cn);
      void Set_Init_Regular();
      void Set_Description();
      void Set_CarNum();
      char* Get_Description();
      int& Get_CarNum();
      string Identify();
      void Print();
   private:
      char Description[25];
   	int CarNum;
};
RegularShift::RegularShift(){}
RegularShift::RegularShift(int d,int s,int e,char *des,int cn)
{
	Day = d;
   StartTime = s;
   EndTime = e;
   strcpy(Description,des);
   CarNum = cn;
}

void RegularShift::Set_Init_Regular(){
	Set_Init_Shift();
   Set_Description();
   Set_CarNum();
}
void RegularShift::Set_Description(){
   textcolor(WHITE);
	cprintf("\nEnter a description: ");
   textcolor(LIGHTGRAY);
   gets(Description);
}
void RegularShift::Set_CarNum(){
   textcolor(WHITE);
	cprintf("\nEnter the car number(0 if none): ");
   textcolor(LIGHTGRAY);
   cin >> CarNum;
}
char* RegularShift::Get_Description(){
	return(Description);
}
int& RegularShift::Get_CarNum(){
	return(CarNum);
}
string RegularShift::Identify(){
	return("RegularShift");
}
void RegularShift::Print(){
	cout << endl << "\tTime: ";
   d.print_day(Day);
   cout << " from " << StartTime << " to " << EndTime
   	  << endl << "\tDescription: " << Description
        << endl << "\tCar Number: " << CarNum << endl;
}

