Package com.deco2800.game.components.npc
Class DialogueDisplay
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.rendering.RenderComponent
com.deco2800.game.ui.UIComponent
com.deco2800.game.components.npc.DialogueDisplay
- All Implemented Interfaces:
 com.badlogic.gdx.utils.Disposable,Renderable,Comparable<Renderable>
Displays a dialog box that allows the Player to interact with NPCs - Team 7 all-mid-npc
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.badlogic.gdx.scenes.scene2d.ui.Tablestatic com.badlogic.gdx.scenes.scene2d.ui.Tablestatic com.badlogic.gdx.scenes.scene2d.ui.Tablestatic com.badlogic.gdx.scenes.scene2d.ui.Tablestatic com.badlogic.gdx.scenes.scene2d.ui.Tablestatic com.badlogic.gdx.scenes.scene2d.ui.Tablestatic com.badlogic.gdx.scenes.scene2d.ui.Tableintintintintintintintintintintstatic Booleanstatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic com.badlogic.gdx.scenes.scene2d.ui.TextAreastatic String[]static String[]static String[]static String[]static String[]static String[]static String[]static String[]static String[]static String[]Fields inherited from class com.deco2800.game.ui.UIComponent
skin, stage - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class com.deco2800.game.ui.UIComponent
getLayer, getZIndexMethods inherited from class com.deco2800.game.rendering.RenderComponent
compareTo, renderMethods inherited from class com.deco2800.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.deco2800.game.rendering.Renderable
render 
- 
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
 - 
haveTalked
public int haveTalked - 
haveTalkedPlumberFriend
public int haveTalkedPlumberFriend - 
haveTalkedFriendlyCreature
public int haveTalkedFriendlyCreature - 
textFemale
 - 
textGuard
 - 
textMale
 - 
textChild
 - 
textHumanGuard
 - 
textHumanGuardAlready
 - 
textPlumberFriendAlready
 - 
textFriendlyCreature
 - 
textFriendlyCreatureAlready
 - 
textPlumberFriend
 
 - 
 - 
Constructor Details
- 
DialogueDisplay
public DialogueDisplay() 
 - 
 - 
Method Details
- 
create
public void create()Description copied from class:ComponentCalled 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:
 createin classUIComponent
 - 
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:RenderComponentDraw the renderable. Should be called only by the renderer, not manually.- Specified by:
 drawin classRenderComponent- Parameters:
 batch- Batch to render to.
 - 
dispose
public void dispose()Description copied from class:ComponentCalled when the component is disposed. Dispose of any internal resources here.- Specified by:
 disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
 disposein classRenderComponent
 
 -