|
RuneHive-Game
|
The Chainable implementation that represents dialogue in which an NPC is talking.
More...
Public Member Functions | |
| void | accept (DialogueFactory factory) |
| Expression | getExpression () |
| Gets the expression of this npc. | |
| int | getId () |
| Gets the id of this npc. | |
| String[] | getLines () |
| Gets the text for this dialogue. | |
| NpcDialogue (int id, Expression expression, String... lines) | |
Creates a new NpcDialogue. | |
| NpcDialogue (int id, String... lines) | |
Creates a new NpcDialogue. | |
Private Attributes | |
| final Expression | expression |
| The expression of this NPC. | |
| int | id = -1 |
| The id of this npc. | |
| final String[] | lines |
| The text for this dialogue. | |
The Chainable implementation that represents dialogue in which an NPC is talking.
Definition at line 8 of file NpcDialogue.java.
| com.runehive.content.dialogue.NpcDialogue.NpcDialogue | ( | int | id, |
| String... | lines ) |
Creates a new NpcDialogue.
| id | The id of this npc. |
| lines | The text for this dialogue. |
Definition at line 34 of file NpcDialogue.java.
References com.runehive.content.dialogue.Expression.DEFAULT, id, and lines.
| com.runehive.content.dialogue.NpcDialogue.NpcDialogue | ( | int | id, |
| Expression | expression, | ||
| String... | lines ) |
Creates a new NpcDialogue.
| id | The id of this npc. |
| expression | The expression of this npc. |
| lines | The text for this dialogue. |
Definition at line 50 of file NpcDialogue.java.
References expression, id, and lines.
| void com.runehive.content.dialogue.NpcDialogue.accept | ( | DialogueFactory | factory | ) |
Definition at line 84 of file NpcDialogue.java.
References com.runehive.content.dialogue.DialogueFactory.sendNpcChat().
| Expression com.runehive.content.dialogue.NpcDialogue.getExpression | ( | ) |
Gets the expression of this npc.
Definition at line 70 of file NpcDialogue.java.
References expression.
| int com.runehive.content.dialogue.NpcDialogue.getId | ( | ) |
Gets the id of this npc.
Definition at line 61 of file NpcDialogue.java.
References id.
| String[] com.runehive.content.dialogue.NpcDialogue.getLines | ( | ) |
Gets the text for this dialogue.
Definition at line 79 of file NpcDialogue.java.
References lines.
|
private |
The expression of this NPC.
Definition at line 18 of file NpcDialogue.java.
Referenced by getExpression(), and NpcDialogue().
|
private |
The id of this npc.
Definition at line 13 of file NpcDialogue.java.
Referenced by getId(), NpcDialogue(), and NpcDialogue().
|
private |
The text for this dialogue.
Definition at line 23 of file NpcDialogue.java.
Referenced by getLines(), NpcDialogue(), and NpcDialogue().