Class MainGameActions

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.maingame.MainGameActions

public class MainGameActions extends Component
Actions on the main game
  • Constructor Details

    • MainGameActions

      public MainGameActions(GdxGame game, Entity docketUI)
      MainGameActions constructor
      Parameters:
      game - the GDXGame
      docketUI - the docket ui
  • Method Details

    • create

      public void create()
      Create actions
      Overrides:
      create in class Component
    • 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

      public void onCreateOrder(String preferredRecipe)
      Create a docket for a recipe
      Parameters:
      preferredRecipe - the name of the recipe to create a docket for