|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.adventure.conversation.Conversation
public class Conversation
This class represents a conversation between the player and a non-player-character (NPC) based on a question and answer system. The player can choose a question from a list menu that triggers a series of sentences spoken by the participants of the conversation.
| Constructor Summary | |
|---|---|
Conversation(java.lang.String id,
Chapter chapter,
InputManager input)
Creates a new conversation with the specified parameters. |
|
| Method Summary | |
|---|---|
void |
addBranch(Branch branch)
Adds a branch to the conversation. |
void |
draw(javax.media.opengl.GL gl)
Draws the questions dialog to the screen. |
Branch |
getBranch(java.lang.String id)
Returns the branch with the specified branch id. |
java.lang.String |
getScriptId()
Returns the script id of the conversation. |
void |
start()
Starts the conversation. |
void |
update(long elapsedTime)
Updates the conversation object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Conversation(java.lang.String id,
Chapter chapter,
InputManager input)
id - script id of the conversationchapter - the chapter this conversation belongs toinput - input manager object| Method Detail |
|---|
public java.lang.String getScriptId()
public void addBranch(Branch branch)
branch - branch to addpublic Branch getBranch(java.lang.String id)
id - id of the branch to retrieve
public void start()
public void update(long elapsedTime)
elapsedTime - time between two framespublic void draw(javax.media.opengl.GL gl)
gl -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||