Class TicketDetails

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.ordersystem.TicketDetails

public class TicketDetails extends Component
This class listens to key presses to shift dockets left and right and handles order-related actions in the game.
  • Constructor Details

    • TicketDetails

      public TicketDetails()
      Constructs an OrderActions instance with a reference to the main game object. - Tia
  • Method Details

    • onUpdateBigTicket

      public void onUpdateBigTicket(String orderNumber, String meal, String timeLeft)
      Updates big ticket information
      Parameters:
      orderNumber -
      meal -
      timeLeft -
    • getCurrentBigTicketInfo

      public String[] getCurrentBigTicketInfo()
      Returns current big ticket information
      Returns:
      String Array representation of big ticket details [orderNum, meal, time]