Class MainGameActions
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.maingame.MainGameActions
Actions on the main game
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Create actionsvoidmoral1()voidmoral2()voidmoral3()voidmoral4()voidonBadEnd()Starts bad ending cutscenevoidCreates Açai Bowl DocketvoidCreates Banana Split DocketvoidCreates Fruit Salad DocketvoidonCreateOrder(String preferredRecipe) Create a docket for a recipevoidCreates Salad DocketvoidCreates Steak DocketvoidonExit()Exit main game screenvoidStarts good ending cutscenevoidStarts bad ending cutsceneMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
MainGameActions
MainGameActions constructor- Parameters:
game- the GDXGamedocketUI- the docket ui
-
-
Method Details
-
create
public void create()Create actions -
moral1
public void moral1() -
moral2
public void moral2() -
moral3
public void moral3() -
moral4
public void moral4() -
onLoseEnd
public void onLoseEnd()Starts bad ending cutscene -
onBadEnd
public void onBadEnd()Starts bad ending cutscene -
onGoodEnd
public void onGoodEnd()Starts good ending cutscene -
onExit
public void onExit()Exit main game screen -
onCreateAcai
public void onCreateAcai()Creates Açai Bowl Docket -
onCreateBanana
public void onCreateBanana()Creates Banana Split Docket -
onCreateSalad
public void onCreateSalad()Creates Salad Docket -
onCreateSteak
public void onCreateSteak()Creates Steak Docket -
onCreateFruitSalad
public void onCreateFruitSalad()Creates Fruit Salad Docket -
onCreateOrder
Create a docket for a recipe- Parameters:
preferredRecipe- the name of the recipe to create a docket for
-