Esempio n. 1
0
 /// <summary>
 /// Adds a response with the specified text.  By default, it will lead to a 'quit' state.
 /// </summary>
 /// <param name="respText">Response to be added with the specified text.</param>
 public void addResponse(String respText)
 {
     Response r = new Response(respText);
     responses.Add(r);
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a response with the specified text and direction to the next state.
 /// </summary>
 /// <param name="respText">Response's specific text</param>
 /// <param name="toNextState">the next state it goes to.</param>
 public void addResponse(String respText, int toNextState)
 {
     Response r = new Response(respText, toNextState);
     responses.Add(r);
 }