Inheritance: DialogueNode
Exemplo n.º 1
0
        private DialogueNode VisitStopDialogueNode(DialogueNode pPrevious)
        {
                        #if DEBUG_WRITE
            Console.WriteLine("VisitStopDialogueNode()");
                        #endif

            match(Token.TokenType.STOP);

            StopDialogueNode n = null;
            string           nameOfConversationToStop = "";

            if (lookAheadType(1) == Token.TokenType.NAME || lookAheadType(1) == Token.TokenType.QUOTED_STRING)
            {
                nameOfConversationToStop = GetAStringFromNextToken(true, false);
            }
            else
            {
                nameOfConversationToStop = _conversationName;
            }

            n = _dialogueRunner.Create <StopDialogueNode>(_conversationName, _language, (_nodeCounter++) + " (stop)");
            n.conversationToStop = nameOfConversationToStop;

                        #if DEBUG_WRITE
            Console.WriteLine("Added stopping node with name '" + n.name + "'");
                        #endif

            AddLinkFromPreviousNode(pPrevious, n);

            return(n);
        }
Exemplo n.º 2
0
        private void PrintStopCommandoDialogueNode(StopDialogueNode pStopNode)
        {
            Indentation();
            _output.Append("STOP " + pStopNode.conversationToStop + "\n");

            DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pStopNode.nextNode);

            SwitchOnNode(nextNode);
        }
Exemplo n.º 3
0
        private void PrintStopCommandoDialogueNode(StopDialogueNode pStopNode)
        {
            Indentation();
            _output.Append("STOP " + pStopNode.conversationToStop + "\n");

            DialogueNode nextNode = _dialogueRunner.GetDialogueNode(_conversation, pStopNode.nextNode);
            SwitchOnNode(nextNode);
        }