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
ConstructorDescriptionSeatingPlanView
(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 TypeMethodDescriptionvoid
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 schedulevoid
Method to print the boiler plate and displays the choice that the user has Displays the cinemaID, movieTitle, showingTime, seatingPlan, seats in cart currentlyvoid
Method to print the seatID and price of the seats chosen by the movieGoervoid
Method 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 chosenMovieSchedule
showTime
- show time of the moviecinema
- cinema chosenCinema
seatingPlan
- ArrayList ofSeat
objectsmovieGoer
- 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
-