Packageorg.wak.dialog
Classpublic class AdventureDialog

Data structure for dialog between two characters in the adventure.



Public Properties
 PropertyDefined by
  dialogId : String
[read-only] id of this dialog.
AdventureDialog
  startupTopic : Topic
[read-only] The startup topic or entry point to the conversation.
AdventureDialog
Public Methods
 MethodDefined by
  
AdventureDialog(pDialogInput:XML)
Constructor
AdventureDialog
  
Topics of the dialog
AdventureDialog
  
isPresent(pCharId:String):Boolean
Test if a character is present in the dialog.
AdventureDialog
Property detail
dialogIdproperty
dialogId:String  [read-only]

id of this dialog.

Implementation
    public function get dialogId():String
startupTopicproperty 
startupTopic:Topic  [read-only]

The startup topic or entry point to the conversation.

Implementation
    public function get startupTopic():Topic
Constructor detail
AdventureDialog()constructor
public function AdventureDialog(pDialogInput:XML)

Constructor

Parameters
pDialogInput:XML — input xml with the dialog.
Method detail
GetTopics()method
public function GetTopics():IIterator

Topics of the dialog

Returns
IIterator — IIterator of the topics
isPresent()method 
public function isPresent(pCharId:String):Boolean

Test if a character is present in the dialog. The entry topic is excluded.

Parameters
pCharId:String — Character id.

Returns
Boolean — true if the character in pCharId is present in the dialog.