public class Theatre { public char id; public String moviePlaying; public float movieEarnings; public int capacity; public int seatsSold; public int admittedPatrons; public Theatre(char identification, int cap) { moviePlaying = ""; movieEarnings = 0; capacity = cap; seatsSold = 0; id = identification; admittedPatrons = 0; } public boolean isFull() { return seatsSold >= capacity; } public void setMoviePlaying(String newMovie) { moviePlaying = newMovie; movieEarnings = 0; admittedPatrons = 0; } public void seatSoldTo(Patron aPatron) { // movieEarnings += Ticket.priceFor(aPatron); seatsSold++; //aPatron.setTicketID(id); } public void seatReturnedBy(Patron aPatron) { seatsSold--; //movieEarnings -= BoxOffice.priceFor(aPatron); //aPatron.discardTicket(); } public boolean admit(Patron p) { //if (p.getTicketID() != this.id) //return false; //p.discardTicket(); admittedPatrons++; return true; } public int unusedTickets() { return seatsSold - admittedPatrons; } }