예제 #1
0
파일: Show.java 프로젝트: nieejl/Projekt1
 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()];
 }
예제 #2
0
파일: Show.java 프로젝트: nieejl/Projekt1
 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;
     }
   }
 }