Example #1
0
 public Show(int showID, Date date, int[] showStart, Movie movie, Theater theater) {
   this.theater = theater;
   this.showID = showID;
   this.movie = movie;
   this.showStart = showStart;
   this.date = date;
   this.pladser = new boolean[theater.getRows()][theater.getSeatsInRow()];
 }
Example #2
0
 public void makeSeatings() {
   int rows = theater.getRows();
   int seatsInRow = theater.getSeatsInRow();
   MySQL.getReservations();
   for (Reservation reservation : MySQL.sendReservations()) {
     for (int i = 0; i < reservation.getSeats().get(0).length - 1; i++) {
       pladser[reservation.getRows().get(0)][reservation.getSeats().get(0)[i]] = true;
     }
   }
 }