示例#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;
     }
   }
 }