Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public Elder(int customerID, int customerAmount, Hall hallChosen)
     : base(customerID, customerAmount, hallChosen)
 {
     speed    = 1;
     userPict = (System.Drawing.Image) new System.Drawing.Bitmap(@"userElder.png");
 }
Esempio n. 4
0
 public Student(int customerID, int customerAmount, Hall hallChosen)
     : base(customerID, customerAmount, hallChosen)
 {
     speed    = 2;
     userPict = (System.Drawing.Image) new System.Drawing.Bitmap(@"userStudent.png");
 }