|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspeech.QuestionSelectionArea
public class QuestionSelectionArea
This class represents the area that displays the questions for a dialog.
Constructor Summary | |
---|---|
QuestionSelectionArea(Player player,
com.golden.gamedev.engine.BaseInput bsInput)
The dialog of that the questions shall be displayed in the question selection area |
Method Summary | |
---|---|
void |
addDialog(Dialog dialog)
Adds a dialog to the set of dialogs for the player |
Dialog |
getDialog(java.lang.String name)
Returns the dialog with the specified name |
void |
render(java.awt.Graphics2D g)
Renders the question selection area and the according questions to screen |
void |
setDialog(java.lang.String dialogName)
Sets the dialog for the question selection area |
void |
update(long elapsedTime)
Updates the question selection area, especially checks for a picked question |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionSelectionArea(Player player, com.golden.gamedev.engine.BaseInput bsInput)
player
- player objectbsInput
- Method Detail |
---|
public void addDialog(Dialog dialog)
dialog
- dialog to add to the set of dialogspublic void setDialog(java.lang.String dialogName)
dialogName
- dialog to set identified by its namepublic Dialog getDialog(java.lang.String name)
name
- identifying name of the sought dialog
public void update(long elapsedTime)
elapsedTime
- time between two framespublic void render(java.awt.Graphics2D g)
g
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |