Esempio n. 1
0
 public override void SetAsNew()
 {
     name      = "New Line";
     dataArray = new Reply[0];
     uniqueID  = null;
     tag       = new LineTag(LineTag.TagType.None);
 }
Esempio n. 2
0
 public void Set(string sentItem1, int sentItem2, bool sentItem3, LineTag sentItem4)
 {
     name            = sentItem1;
     id              = sentItem2;
     useDefaultReply = sentItem3;
     tag             = sentItem4;
 }
Esempio n. 3
0
            //Returns a topic stage with a topic question and replies for each available stage topic.
            private static Stage GetTopicStage(Conversation conv, List <Stage> tempStages)
            {
                //Create reply array of length 1 longer than topics length
                Reply[] topicReplies = new Reply[tempStages.Count + 1];
                for (int i = 0; i < tempStages.Count; i++)
                {
                    //Create topic replies to select topic
                    ReplyTag tempTag = new ReplyTag(ReplyTag.TagType.ChangeStage, i + 1);
                    topicReplies[i] = new Reply(tempStages[i].Text, 0, tempTag);
                }

                //Create End Reply to exit conversation
                ReplyTag endTag = new ReplyTag(ReplyTag.TagType.End);

                topicReplies[tempStages.Count] = new Reply("End", 0, endTag);

                //Create Line and tag for topic question
                LineTag        lineTag     = new LineTag(LineTag.TagType.TopicQuestion);
                Line           topicLine   = new Line(topicReplies, conv.PrintableText, 0, false, lineTag);
                DialougeBranch topicBranch = new DialougeBranch(topicLine);
                Stage          tempStage   = new Stage(topicBranch);

                return(tempStage);
            }
Esempio n. 4
0
 public Line(Reply sentData, string sentText = "", int sentID = -1, bool sentUseDefaultReply = true, LineTag sentTag = default(LineTag)) : base(sentData)
 {
     Set(sentText, sentID, sentUseDefaultReply, tag);
 }