Package src.view
Class SeatingPlanView
Object
SeatingPlanView
View for movie goer of the seating plan of the movie at that cinema
- Version:
- 1.0
- Author:
- Lee Juin, Yeek Sheng
-
Constructor Summary
ConstructorsConstructorDescriptionSeatingPlanView(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 TypeMethodDescriptionvoidMethod 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 schedulevoidMethod to print the boiler plate and displays the choice that the user has Displays the cinemaID, movieTitle, showingTime, seatingPlan, seats in cart currentlyvoidMethod to print the seatID and price of the seats chosen by the movieGoervoidMethod to print out the floor map of the cinema choice to display the seats
-
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 chosenMovieScheduleshowTime- show time of the moviecinema- cinema chosenCinemaseatingPlan- ArrayList ofSeatobjectsmovieGoer- movieGoer accessing the viewMovieGoer
-
-
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
-