YesNoQuestionclassparser.t[1127]

A YesNoQuestion is a simple subclass of Question for asking interactive questions with Yes or No answers.

class YesNoQuestion :   GramQuestion

Superclass Tree   (in declaration order)

YesNoQuestion
        GramQuestion
                Question
                        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

priority 

Inherited from GramQuestion :
answerFunc  answerProd 

Inherited from Question :
answerTemplate 

Summary of Methods  

construct 

Inherited from GramQuestion :
makeCommand  parseAnswer 

Properties  

priorityOVERRIDDENparser.t[1150]

parse Yes/No replies ahead of new commands, since we'd otherwise never get an answer - the parser would always match the reply to a conversational verb instead

Methods  

construct (func)OVERRIDDENparser.t[1133]

Create - 'func' is the callback function to invoke on answering the question. This is invoked with one argument, true if the answer was Yes, nil if the answer was No.

Adv3Lite Library Reference Manual
Generated on 25/04/2024 from adv3Lite version 2.0