Package src.view

Class MovieScheduleView

Object
MovieScheduleView

public class MovieScheduleView extends Object
View for movie goer to view the schedules of the movie for its type
Version:
1.0
Author:
Yeek Sheng, Jerick
  • Constructor Summary

    Constructors
    Constructor
    Description
    MovieScheduleView(ArrayList<Cinema> cinemaList, Movie movie, MovieGoer movieGoer)
    Creates a new MovieScheduleView with ArrayList of cinemas, movie, moviegoer Stores the index of the showingVenues that match the list of cinemas showing the movie and its type
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method to call printMenu and takes in the choice of the user to display the seatingPlanView using the showingTime chosen by the user at that cinema
    boolean
    Method to print the boiler plate and calls printShowingTimes
    boolean
    Method to print out the showingTimes of the movie if it is bookable

    Methods inherited from class Object

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

    • MovieScheduleView

      public MovieScheduleView(ArrayList<Cinema> cinemaList, Movie movie, MovieGoer movieGoer)
      Creates a new MovieScheduleView with ArrayList of cinemas, movie, moviegoer Stores the index of the showingVenues that match the list of cinemas showing the movie and its type
      Parameters:
      cinemaList - ArrayList of cinemas showing the movie title and type Cinema
      movie - Movie title Movie
      movieGoer - movieGoer accessing the view MovieGoer
  • Method Details

    • printShowingTimes

      public boolean printShowingTimes()
      Method to print out the showingTimes of the movie if it is bookable
      Returns:
      if the movie is available for booking or not
    • printMenu

      public boolean printMenu()
      Method to print the boiler plate and calls printShowingTimes
      Returns:
      if the movie is available for booking or not
    • appContent

      public void appContent()
      Method to call printMenu and takes in the choice of the user to display the seatingPlanView using the showingTime chosen by the user at that cinema