|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgameaction.AbstractGameAction
gameaction.Talk
public class Talk
A game action that represents talking to a character
| Constructor Summary | |
|---|---|
Talk(AbstractCharacterSprite c,
boolean isBranch)
Creates a new Talk action |
|
Talk(AbstractCharacterSprite c,
boolean isBranch,
boolean aborter)
Creates a new Talk action |
|
| Method Summary | |
|---|---|
SentenceScheduler |
getSentenceScheduler()
Returns the global sentence scheduler |
boolean |
isAborter()
Determines whether this talk actions is the aborter for a dialog |
boolean |
isNoMoreToSay()
Determines whether there are no more sentences in the sentences scheduler |
void |
render(java.awt.Graphics2D g)
|
void |
say(AbstractCharacterSprite c,
java.lang.String line)
Lets the character say a sentence. |
void |
say(AbstractCharacterSprite c,
java.lang.String[] lines)
Deprecated. do not use this method anymore |
void |
say(AbstractCharacterSprite c,
java.lang.String line,
java.awt.Color color)
Lets the character say a sentence with the specified color. |
void |
say(AbstractCharacterSprite c,
java.lang.String line,
java.awt.Color color,
int time)
Lets the character say a sentence with the specified color |
void |
say(AbstractCharacterSprite c,
java.lang.String line,
int time)
Lets the character say a sentence |
void |
say(AbstractCharacterSprite c,
java.lang.String line,
java.lang.String soundPath)
Lets the character say a sentence with the specified sound file |
void |
say(AbstractCharacterSprite c,
java.lang.String line,
java.lang.String soundPath,
java.awt.Color color)
Lets the character say a sentence with the specified color and specified sound file |
void |
update(long elapsedTime)
Updates the game action |
| Methods inherited from class gameaction.AbstractGameAction |
|---|
getCharacter, isSecondMethodCall |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Talk(AbstractCharacterSprite c,
boolean isBranch)
c - character to whose game action queue the talk
action shall be assigned toisBranch - specifies, if the talk action is part of
a dialog with a question selection area
public Talk(AbstractCharacterSprite c,
boolean isBranch,
boolean aborter)
c - character to whose game action queue the talk
action shall be assigned toisBranch - specifies, if the talk action is part of
a dialog with a question selection areaaborter - specifies if the talk action is used to
abort dialogs with question selection areas| Method Detail |
|---|
public boolean isAborter()
public SentenceScheduler getSentenceScheduler()
public boolean isNoMoreToSay()
public void say(AbstractCharacterSprite c,
java.lang.String line,
java.lang.String soundPath,
java.awt.Color color)
c - the character that says somethingline - sentence to be saidcolor - color of the sentence's textsoundPath - path+filename for corresponding sound file
public void say(AbstractCharacterSprite c,
java.lang.String line,
java.awt.Color color,
int time)
c - the character that says somethingline - sentence to be saidcolor - color of the sentence's texttime - time in ms the line is visible
public void say(AbstractCharacterSprite c,
java.lang.String line,
java.lang.String soundPath)
c - character that says somethingline - sentence to be saidsoundPath - path+filename for corresponding sound file
public void say(AbstractCharacterSprite c,
java.lang.String line,
int time)
c - character that says somethingline - sentence to be saidtime - time in ms the line is visible
public void say(AbstractCharacterSprite c,
java.lang.String line)
c - character that says somethingline - sentence to be said
public void say(AbstractCharacterSprite c,
java.lang.String[] lines)
c - character that says somethinglines - one or several sentences to be said
public void say(AbstractCharacterSprite c,
java.lang.String line,
java.awt.Color color)
c - character that says somethingline - sentence to be saidcolor - color of the sentence's textpublic void update(long elapsedTime)
AbstractGameAction
update in class AbstractGameActionelapsedTime - time between two framespublic void render(java.awt.Graphics2D g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||