public class SpeechboxManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.badlogic.gdx.InputMultiplexer |
multiplexer
This controls input readings
|
private java.util.List<SpeechBox> |
stack
This is the stack of SpeechBox's that are to be displayed
|
Constructor and Description |
---|
SpeechboxManager()
Constructor to create a SpeechboxManager and initialise the input multiplexer
|
Modifier and Type | Method and Description |
---|---|
void |
addSpeechBox(SpeechBox speechBox)
This method adds a SpeechBox to the stack
|
void |
removeCurrentSpeechBox()
This method removes the current speechBox from the stack and progresses onto the next one if
there is one
|
void |
render()
This method is called once a render loop to render the menu
|
void |
resize(int width,
int height)
This is called when the window is resized
|
void |
update()
This method is called once a tick
|
private void |
updateInputProcessor()
This updates the input multiplexer based on whether there are any SpeechBoxes in the stack
|
public com.badlogic.gdx.InputMultiplexer multiplexer
private java.util.List<SpeechBox> stack
public SpeechboxManager()
public void render()
public void update()
public void resize(int width, int height)
width
- - The new widthheight
- - The new heightprivate void updateInputProcessor()
public void addSpeechBox(SpeechBox speechBox)
speechBox
- - The SpeechBox to add to the stackpublic void removeCurrentSpeechBox()