Package src.view

Class SeatingPlanView

Object
SeatingPlanView

public class SeatingPlanView extends Object
View for movie goer of the seating plan of the movie at that cinema
Version:
1.0
Author:
Lee Juin, Yeek Sheng
  • Constructor Summary

    Constructors
    Constructor
    Description
    SeatingPlanView(MovieSchedule movieSchedule, DateTime showTime, Cinema cinema, ArrayList<Seat> seatingPlan, MovieGoer movieGoer)
    Creates a new SeatingPlanView with chosen movieSchedule, cinema, showingPlan and the movieGoer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method to take in the choice of the user for the booking of a new seat Creates a PaymentView from the current cinema and schedule with total price of MovieTickets Creates a MovieTicketView from the seatIDs chosen at this cinema and schedule
    void
    Method to print the boiler plate and displays the choice that the user has Displays the cinemaID, movieTitle, showingTime, seatingPlan, seats in cart currently
    void
    Method to print the seatID and price of the seats chosen by the movieGoer
    void
    Method to print out the floor map of the cinema choice to display the seats

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SeatingPlanView

      public SeatingPlanView(MovieSchedule movieSchedule, DateTime showTime, Cinema cinema, ArrayList<Seat> seatingPlan, MovieGoer movieGoer)
      Creates a new SeatingPlanView with chosen movieSchedule, cinema, showingPlan and the movieGoer
      Parameters:
      movieSchedule - movieSchedule chosen MovieSchedule
      showTime - show time of the movie
      cinema - cinema chosen Cinema
      seatingPlan - ArrayList of Seat objects
      movieGoer - movieGoer accessing the view MovieGoer
  • Method Details

    • printSeatingPlan

      public void printSeatingPlan()
      Method to print out the floor map of the cinema choice to display the seats
    • printMenu

      public void printMenu()
      Method to print the boiler plate and displays the choice that the user has Displays the cinemaID, movieTitle, showingTime, seatingPlan, seats in cart currently
    • printSeatInCart

      public void printSeatInCart()
      Method to print the seatID and price of the seats chosen by the movieGoer
    • appContent

      public void appContent()
      Method to take in the choice of the user for the booking of a new seat Creates a PaymentView from the current cinema and schedule with total price of MovieTickets Creates a MovieTicketView from the seatIDs chosen at this cinema and schedule