| Package | org.wak.dialog |
| Class | public class Topic |
| Property | Defined by | ||
|---|---|---|---|
| action : String [read-only]
Action of this topic.
| Topic | ||
| onlyOnce : Boolean [read-only]
True if this topic was intended to be played only once.
| Topic | ||
| played : Boolean
private
| Topic | ||
| say : Boolean
If say is true the character will repeat the text after the selection.
| Topic | ||
| target : String [read-only]
The target works as a parameter of the action assigned to the topic.
| Topic | ||
| topicId : String [read-only]
Id of the topic, the id is optional fo the topic.
| Topic | ||
| visible : Boolean
visibility flag for the topic on the dialog interface.
| Topic | ||
| Method | Defined by | ||
|---|---|---|---|
|
Topic(pInput:XML)
Constructor
| Topic | ||
|
List of the Say items contained in the Topic
| Topic | ||
|
isPresent(pCharId:String):Boolean
Test if a character is present in the topic.
| Topic | ||
|
SayText(pCharId:String):String
Return the first found Say item for the given character id.
| Topic | ||
|
toString():String
| Topic | ||
| action | property |
action:String [read-only]Action of this topic. An action could be: exit: finish the conversation. goto: jumps to another dialog menu. activate: activates another dialgo option previously disabled. action: calls a method in the puzzle managers.
Implementation public function get action():String
| onlyOnce | property |
onlyOnce:Boolean [read-only]True if this topic was intended to be played only once.
Implementation public function get onlyOnce():Boolean
| played | property |
played:Boolean [read-write]private
Implementation public function get played():Boolean
public function set played(value:Boolean):void
| say | property |
say:Boolean [read-write]If say is true the character will repeat the text after the selection.
Implementation public function get say():Boolean
public function set say(value:Boolean):void
| target | property |
target:String [read-only]The target works as a parameter of the action assigned to the topic. if the action of the topic is goto, the destination dialog is stored in the target property.
Implementation public function get target():String
| topicId | property |
topicId:String [read-only]Id of the topic, the id is optional fo the topic. I must be used when some scripting interaction is used with the topic.
Implementation public function get topicId():String
| visible | property |
visible:Boolean [read-write]visibility flag for the topic on the dialog interface.
Implementation public function get visible():Boolean
public function set visible(value:Boolean):void
| Topic | () | constructor |
public function Topic(pInput:XML)Constructor
ParameterspInput:XML — input xml containing the topic.
|
| GetSayItems | () | method |
public function GetSayItems():IIteratorList of the Say items contained in the Topic
ReturnsIIterator —
IIterator with SayItem s
|
| isPresent | () | method |
public function isPresent(pCharId:String):BooleanTest if a character is present in the topic.
ParameterspCharId:String — character id to test.
|
Boolean — true if the character is present as speaker in the topic.
|
| SayText | () | method |
public function SayText(pCharId:String):StringReturn the first found Say item for the given character id.
ParameterspCharId:String — character id.
|
String — Text to say for the character id in pCharId
|
| toString | () | method |
public function toString():String
Returns
String |