source: trunk/game/design/DialogueEngine_DataStructures_Techdemo2.graphml @ 683

Revision 680, 11.0 KB checked in by technomage, 9 years ago (diff)

Patch by Technomage

  • Updated/wrote code documentation for the core dialogue subsystem modules dialogue.py, dialogueengine.py, dialogueactions.py, and dialogueparsers.py.
  • Updated/created flowcharts and UML diagrams explaining the new DialogueEngine? and how it functions.
  • Made a few minor changes to the dialoguegui.py module to make the class logger less visible.
  • Removed the "this is a sample dialogue file" crud from the old_man.yaml test dialogue file.
Line 
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
3  <!--Created by yFiles for Java 2.7-->
4  <key for="graphml" id="d0" yfiles.type="resources"/>
5  <key attr.name="url" attr.type="string" for="node" id="d1"/>
6  <key attr.name="description" attr.type="string" for="node" id="d2"/>
7  <key for="node" id="d3" yfiles.type="nodegraphics"/>
8  <key attr.name="Description" attr.type="string" for="graph" id="d4">
9    <default/>
10  </key>
11  <key attr.name="url" attr.type="string" for="edge" id="d5"/>
12  <key attr.name="description" attr.type="string" for="edge" id="d6"/>
13  <key for="edge" id="d7" yfiles.type="edgegraphics"/>
14  <graph edgedefault="directed" id="G">
15    <node id="n0">
16      <data key="d1"/>
17      <data key="d2"><![CDATA[UMLClass]]></data>
18      <data key="d3">
19        <y:UMLClassNode>
20          <y:Geometry height="67.0" width="156.0" x="347.0" y="81.5"/>
21          <y:Fill color="#FFCC00" transparent="false"/>
22          <y:BorderStyle color="#000000" type="line" width="1.0"/>
23          <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="21.0" modelName="internal" modelPosition="t" textColor="#000000" visible="true" width="141.0" x="7.5" y="3.0">DialogueResponse</y:NodeLabel>
24          <y:UML clipContent="true" constraint="" omitDetails="false" stereotype="" use3DEffect="true">
25            <y:AttributeLabel>condition</y:AttributeLabel>
26            <y:MethodLabel/>
27          </y:UML>
28        </y:UMLClassNode>
29      </data>
30    </node>
31    <node id="n1">
32      <data key="d1"/>
33      <data key="d2"><![CDATA[UMLClass]]></data>
34      <data key="d3">
35        <y:UMLClassNode>
36          <y:Geometry height="96.0" width="126.0" x="-186.0" y="98.0"/>
37          <y:Fill color="#FFCC00" transparent="false"/>
38          <y:BorderStyle color="#000000" type="line" width="1.0"/>
39          <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="21.0" modelName="internal" modelPosition="t" textColor="#000000" visible="true" width="69.0" x="28.5" y="3.0">Dialogue</y:NodeLabel>
40          <y:UML clipContent="true" constraint="" omitDetails="false" stereotype="" use3DEffect="true">
41            <y:AttributeLabel>npc_name
42avatar_path
43start_node_id</y:AttributeLabel>
44            <y:MethodLabel/>
45          </y:UML>
46        </y:UMLClassNode>
47      </data>
48    </node>
49    <node id="n2">
50      <data key="d3">
51        <y:ShapeNode>
52          <y:Geometry height="34.0" width="36.05901639344262" x="-60.0" y="98.0"/>
53          <y:Fill color="#FFCC00" transparent="false"/>
54          <y:BorderStyle color="#000000" type="line" width="1.0"/>
55          <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="15.0" x="10.52950819672131" y="7.5">id</y:NodeLabel>
56          <y:Shape type="rectangle3d"/>
57        </y:ShapeNode>
58      </data>
59    </node>
60    <node id="n3">
61      <data key="d1"/>
62      <data key="d2"><![CDATA[UMLClass]]></data>
63      <data key="d3">
64        <y:UMLClassNode>
65          <y:Geometry height="61.261475409836066" width="188.40546448087423" x="484.83005464480885" y="-76.61106557377053"/>
66          <y:Fill color="#FFCC00" transparent="false"/>
67          <y:BorderStyle color="#000000" type="line" width="1.0"/>
68          <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="21.0" modelName="internal" modelPosition="t" textColor="#000000" visible="true" width="115.0" x="36.702732240437115" y="27.0">DialogueAction</y:NodeLabel>
69          <y:UML clipContent="true" constraint="" omitDetails="false" stereotype="abstract" use3DEffect="true">
70            <y:AttributeLabel/>
71            <y:MethodLabel/>
72          </y:UML>
73        </y:UMLClassNode>
74      </data>
75    </node>
76    <node id="n4">
77      <data key="d1"/>
78      <data key="d2"><![CDATA[UMLClass]]></data>
79      <data key="d3">
80        <y:UMLClassNode>
81          <y:Geometry height="67.0" width="126.0" x="112.0" y="81.5"/>
82          <y:Fill color="#FFCC00" transparent="false"/>
83          <y:BorderStyle color="#000000" type="line" width="1.0"/>
84          <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="21.0" modelName="internal" modelPosition="t" textColor="#000000" visible="true" width="123.0" x="1.5" y="3.0">DialogueSection</y:NodeLabel>
85          <y:UML clipContent="true" constraint="" omitDetails="false" stereotype="" use3DEffect="true">
86            <y:AttributeLabel>id</y:AttributeLabel>
87            <y:MethodLabel/>
88          </y:UML>
89        </y:UMLClassNode>
90      </data>
91    </node>
92    <node id="n5">
93      <data key="d1"/>
94      <data key="d2"><![CDATA[UMLClass]]></data>
95      <data key="d3">
96        <y:UMLClassNode>
97          <y:Geometry height="67.0" width="120.0" x="235.47465088038848" y="-79.4803278688525"/>
98          <y:Fill color="#FFCC00" transparent="false"/>
99          <y:BorderStyle color="#000000" type="line" width="1.0"/>
100          <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="21.0" modelName="internal" modelPosition="b" textColor="#000000" visible="true" width="108.0" x="6.0" y="3.0">DialogueNode</y:NodeLabel>
101          <y:UML clipContent="true" constraint="" omitDetails="false" stereotype="" use3DEffect="true">
102            <y:AttributeLabel>text</y:AttributeLabel>
103            <y:MethodLabel/>
104          </y:UML>
105        </y:UMLClassNode>
106      </data>
107    </node>
108    <edge id="e0" source="n4" target="n2">
109      <data key="d7">
110        <y:PolyLineEdge>
111          <y:Path sx="-63.0" sy="-0.0" tx="18.02950819672131" ty="-0.0"/>
112          <y:LineStyle color="#000000" type="line" width="1.0"/>
113          <y:Arrows source="none" target="white_diamond"/>
114          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="six_pos" modelPosition="ttail" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="57.0" x="-125.78279574034644" y="2.0">sections</y:EdgeLabel>
115          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="six_pos" modelPosition="thead" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="26.0" x="-125.78279574034644" y="-21.0">1..*</y:EdgeLabel>
116          <y:BendStyle smoothed="false"/>
117        </y:PolyLineEdge>
118      </data>
119    </edge>
120    <edge id="e1" source="n0" target="n4">
121      <data key="d7">
122        <y:PolyLineEdge>
123          <y:Path sx="-78.0" sy="-0.0" tx="63.0" ty="-0.0"/>
124          <y:LineStyle color="#000000" type="line" width="1.0"/>
125          <y:Arrows source="none" target="white_diamond"/>
126          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="six_pos" modelPosition="ttail" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="70.0" x="-98.848388671875" y="2.0">responses</y:EdgeLabel>
127          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="six_pos" modelPosition="thead" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="26.0" x="-98.848388671875" y="-21.0">1..*</y:EdgeLabel>
128          <y:BendStyle smoothed="false"/>
129        </y:PolyLineEdge>
130      </data>
131    </edge>
132    <edge id="e2" source="n4" target="n5">
133      <data key="d7">
134        <y:PolyLineEdge>
135          <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0">
136            <y:Point x="175.0" y="46.0"/>
137            <y:Point x="295.4746508803885" y="46.0"/>
138          </y:Path>
139          <y:LineStyle color="#000000" type="line" width="1.0"/>
140          <y:Arrows source="none" target="white_delta"/>
141          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="4.0" modelName="six_pos" modelPosition="tail" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="58.23732544019424" y="-33.47705078125"/>
142          <y:BendStyle smoothed="false"/>
143        </y:PolyLineEdge>
144      </data>
145    </edge>
146    <edge id="e3" source="n0" target="n5">
147      <data key="d7">
148        <y:PolyLineEdge>
149          <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0">
150            <y:Point x="425.0" y="46.0"/>
151            <y:Point x="295.4746508803885" y="46.0"/>
152          </y:Path>
153          <y:LineStyle color="#000000" type="line" width="1.0"/>
154          <y:Arrows source="none" target="white_delta"/>
155          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="4.0" modelName="six_pos" modelPosition="tail" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="-66.76267455980576" y="-33.47705078125"/>
156          <y:BendStyle smoothed="false"/>
157        </y:PolyLineEdge>
158      </data>
159    </edge>
160    <edge id="e4" source="n3" target="n5">
161      <data key="d7">
162        <y:PolyLineEdge>
163          <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
164          <y:LineStyle color="#000000" type="line" width="1.0"/>
165          <y:Arrows source="none" target="white_diamond"/>
166          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="six_pos" modelPosition="ttail" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="50.0" x="-119.24837158054902" y="1.9999997373486735">actions</y:EdgeLabel>
167          <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="19.0" modelName="six_pos" modelPosition="thead" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="10.0" x="-119.24837158054902" y="-21.000000262651326">*</y:EdgeLabel>
168          <y:BendStyle smoothed="false"/>
169        </y:PolyLineEdge>
170      </data>
171    </edge>
172  </graph>
173  <data key="d0">
174    <y:Resources/>
175  </data>
176</graphml>
Note: See TracBrowser for help on using the repository browser.