|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.adventure.conversation.Sentence
public class Sentence
This class is a container for one ore more sentences of text to be said by a character.
| Constructor Summary | |
|---|---|
Sentence(AbstractCharacter c,
java.lang.String text)
Creates a new sentence object with the specified text, but without a sound file assigned. |
|
Sentence(AbstractCharacter c,
java.lang.String text,
java.lang.String pathSound)
Creates a new sentence object with the specified text and the speciefied sound file. |
|
| Method Summary | |
|---|---|
AbstractCharacter |
getCharacter()
Returns the character that is assigned to this sentence. |
java.lang.String |
getScriptCode()
Returns the scripted code that is assigned to the sentence. |
Mp3Sound |
getSound()
Returns the sound that is assigned to this Sentence object. |
java.lang.String |
getText()
Returns the text assigned to this Sentence object. |
boolean |
isRunning()
Determines whether or not this sentence is currently running. |
void |
reloadSound()
A method that reloads the sound file associated to this sentence. |
void |
setScriptCode(java.lang.String code)
Assigns the specified scripted code to the sentence |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sentence(AbstractCharacter c,
java.lang.String text)
c - character that sais the sentencetext - text for this sentence object
public Sentence(AbstractCharacter c,
java.lang.String text,
java.lang.String pathSound)
c - character that sais the sentencetext - text for this sentence objectpathSound - path to mp3 sound file| Method Detail |
|---|
public void setScriptCode(java.lang.String code)
code - scripted code that is connected to the sentencepublic java.lang.String getScriptCode()
null.
public AbstractCharacter getCharacter()
public java.lang.String getText()
public Mp3Sound getSound()
public void reloadSound()
public boolean isRunning()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||