public void SetHall(string hallString) { if (hallString == "A") { hall1 = new HallA(); } else if (hallString == "B") { hall1 = new HallB(); } else if (hallString == "C") { hall1 = new HallC(); } }
public Customer(int customerID, int customerAmount, Hall hallChosen) { // Customer ID & Customer Amount this.customerID = customerID; this.customerAmount = customerAmount; // instantiate hall object to access the Seats and Doors hall = hallChosen; hall.ConfigHall(); seats = hall.Seats(); doors = hall.Doors(); // get the column and Row of the seats[,] seatRowCust = seats.GetLength(0); // get length from the first column [*,] seatColCust = seats.GetLength(1); // get length from the second column [,*] rand = new Random(); }
public Elder(int customerID, int customerAmount, Hall hallChosen) : base(customerID, customerAmount, hallChosen) { speed = 1; userPict = (System.Drawing.Image) new System.Drawing.Bitmap(@"userElder.png"); }
public Student(int customerID, int customerAmount, Hall hallChosen) : base(customerID, customerAmount, hallChosen) { speed = 2; userPict = (System.Drawing.Image) new System.Drawing.Bitmap(@"userStudent.png"); }