Class TicketDetails
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.ordersystem.TicketDetails
This class listens to key presses to shift dockets left and right and handles
order-related actions in the game.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an OrderActions instance with a reference to the main game object. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns current big ticket informationvoid
onUpdateBigTicket
(String orderNumber, String meal, String timeLeft) Updates big ticket informationMethods inherited from class com.csse3200.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
TicketDetails
public TicketDetails()Constructs an OrderActions instance with a reference to the main game object. - Tia
-
-
Method Details
-
onUpdateBigTicket
Updates big ticket information- Parameters:
orderNumber
-meal
-timeLeft
-
-
getCurrentBigTicketInfo
Returns current big ticket information- Returns:
- String Array representation of big ticket details [orderNum, meal, time]
-