Class DialogueDisplay

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class DialogueDisplay extends UIComponent
Displays a dialog box that allows the Player to interact with NPCs - Team 7 all-mid-npc
  • Field Details

    • dialogueImageFemale

      public int dialogueImageFemale
    • dialogueImageChild

      public int dialogueImageChild
    • dialogueImageGuard

      public int dialogueImageGuard
    • dialogueImageMale

      public int dialogueImageMale
    • dialogueImageHumanGuard

      public int dialogueImageHumanGuard
    • dialogueImageFriendlyCreature

      public int dialogueImageFriendlyCreature
    • dialogueImagePlumberFriend

      public int dialogueImagePlumberFriend
    • dialogueContainerFemale

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerFemale
    • dialogueContainerGuard

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerGuard
    • dialogueContainerMale

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerMale
    • dialogueContainerChild

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerChild
    • dialogueContainerHumanGuard

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerHumanGuard
    • dialogueContainerFriendlyCreature

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerFriendlyCreature
    • dialogueContainerPlumberFriend

      public static com.badlogic.gdx.scenes.scene2d.ui.Table dialogueContainerPlumberFriend
    • textAreaFemale

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaFemale
    • textAreaGuard

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaGuard
    • textAreaMale

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaMale
    • textAreaChild

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaChild
    • textAreaHumanGuard

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaHumanGuard
    • textAreaHumanGuardAlready

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaHumanGuardAlready
    • textAreaPlumberFriendAlready

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaPlumberFriendAlready
    • textAreaFriendlyCreature

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaFriendlyCreature
    • textAreaFriendlyCreatureAlready

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaFriendlyCreatureAlready
    • textAreaPlumberFriend

      public static com.badlogic.gdx.scenes.scene2d.ui.TextArea textAreaPlumberFriend
    • state

      public static Boolean state
    • haveTalked

      public int haveTalked
    • haveTalkedPlumberFriend

      public int haveTalkedPlumberFriend
    • haveTalkedFriendlyCreature

      public int haveTalkedFriendlyCreature
    • textFemale

      public static String[] textFemale
    • textGuard

      public static String[] textGuard
    • textMale

      public static String[] textMale
    • textChild

      public static String[] textChild
    • textHumanGuard

      public static String[] textHumanGuard
    • textHumanGuardAlready

      public static String[] textHumanGuardAlready
    • textPlumberFriendAlready

      public static String[] textPlumberFriendAlready
    • textFriendlyCreature

      public static String[] textFriendlyCreature
    • textFriendlyCreatureAlready

      public static String[] textFriendlyCreatureAlready
    • textPlumberFriend

      public static String[] textPlumberFriend
  • Constructor Details

    • DialogueDisplay

      public DialogueDisplay()
  • Method Details

    • create

      public void create()
      Description copied from class: Component
      Called when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished.
      Overrides:
      create in class UIComponent
    • nextText

      public void nextText()
    • openDialogue

      public void openDialogue()
    • hideDialogue

      public void hideDialogue()
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Description copied from class: RenderComponent
      Draw the renderable. Should be called only by the renderer, not manually.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.
    • dispose

      public void dispose()
      Description copied from class: Component
      Called when the component is disposed. Dispose of any internal resources here.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent