Java Universal Role Playing Engine Version 0.3.9

jurpe.dialogs
Class DialogUnit

java.lang.Object
  extended by jurpe.dialogs.DialogUnit

public class DialogUnit
extends java.lang.Object

A dialog unit object is composed by a question, some answers, and an ID code


Constructor Summary
DialogUnit(java.lang.String code)
          Dialog Unit constructor
 
Method Summary
 void addAnswer(Answer ans)
          Add an answer to the answers of this dialog unit
 java.util.AbstractList<Answer> getAnswers()
          Get the answers related to this dialog unit
 java.lang.String getId()
          Get Dialog Unit code (ID)
 java.lang.String getQuestion()
          Get Dialog Unit question
 void setQuestion(java.lang.String qst)
          Set Dialog Unit question
 java.lang.String toString()
          String representation of the dialog unit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DialogUnit

public DialogUnit(java.lang.String code)
Dialog Unit constructor

Parameters:
code - The Dialog Unit code (ID)
Method Detail

setQuestion

public void setQuestion(java.lang.String qst)
Set Dialog Unit question

Parameters:
qst - Question text

getQuestion

public java.lang.String getQuestion()
Get Dialog Unit question

Returns:
The Dialog Unit question

getId

public java.lang.String getId()
Get Dialog Unit code (ID)

Returns:
The dialog unit code

addAnswer

public void addAnswer(Answer ans)
Add an answer to the answers of this dialog unit

Parameters:
ans - Answer to be added

getAnswers

public java.util.AbstractList<Answer> getAnswers()
Get the answers related to this dialog unit

Returns:
Answers of this dialog unit

toString

public java.lang.String toString()
String representation of the dialog unit

Overrides:
toString in class java.lang.Object

Java Universal Role Playing Engine Version 0.3.9

Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.