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 TypeMethodDescriptionvoid
create()
Create actionsvoid
moral1()
void
moral2()
void
moral3()
void
moral4()
void
onBadEnd()
Starts bad ending cutscenevoid
Creates Açai Bowl Docketvoid
Creates Banana Split Docketvoid
Creates Fruit Salad Docketvoid
onCreateOrder
(String preferredRecipe) Create a docket for a recipevoid
Creates Salad Docketvoid
Creates Steak Docketvoid
onExit()
Exit main game screenvoid
Starts good ending cutscenevoid
Starts 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
-