-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ideia.drawio
221 lines (221 loc) · 20 KB
/
Ideia.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<mxfile host="65bd71144e">
<diagram id="ykVe7QsqnV5WLiSWHkDK" name="Page-1">
<mxGraphModel dx="1534" dy="1590" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="6" value="Pergunta" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" parent="1" vertex="1">
<mxGeometry x="802" y="468" width="212" height="180" as="geometry"/>
</mxCell>
<mxCell id="7" value="String : questionHeader (30 Char)" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="6" vertex="1">
<mxGeometry y="30" width="212" height="30" as="geometry"/>
</mxCell>
<mxCell id="8" value="String : questão" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="6" vertex="1">
<mxGeometry y="60" width="212" height="30" as="geometry"/>
</mxCell>
<mxCell id="9" value="Arr<String>[3] : opcoesResposta" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="6" vertex="1">
<mxGeometry y="90" width="212" height="30" as="geometry"/>
</mxCell>
<mxCell id="11" value="Int : respostaCerta (0-2)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="6" vertex="1">
<mxGeometry y="120" width="212" height="30" as="geometry"/>
</mxCell>
<mxCell id="12" value="Int : minimoDePontos" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="6" vertex="1">
<mxGeometry y="150" width="212" height="30" as="geometry"/>
</mxCell>
<mxCell id="10" style="edgeStyle=none;html=1;entryX=-0.002;entryY=0.089;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryPerimeter=0;" parent="1" source="25" target="6" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="17" value="State Machine" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" parent="1" vertex="1">
<mxGeometry x="44" y="133" width="268" height="310" as="geometry"/>
</mxCell>
<mxCell id="18" value="- Porta : portaAtual" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="17" vertex="1">
<mxGeometry y="30" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="19" value="- Integer : qtdPontos" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="17" vertex="1">
<mxGeometry y="60" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="29" value="- List&lt;Porta&gt; : portasBase" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="17" vertex="1">
<mxGeometry y="90" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="53" value="- Int : Certas" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="17" vertex="1">
<mxGeometry y="120" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="54" value="- Int : Erradas" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="17" vertex="1">
<mxGeometry y="150" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="22" value="" style="line;strokeWidth=2;html=1;" parent="17" vertex="1">
<mxGeometry y="180" width="268" height="10" as="geometry"/>
</mxCell>
<mxCell id="23" value="-generateDoors() : List&lt;Portas&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="17" vertex="1">
<mxGeometry y="190" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="3" value="+setPortaAtual (Porta : porta)" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="17" vertex="1">
<mxGeometry y="220" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="32" value="+getPortaAtual() : Porta" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="17" vertex="1">
<mxGeometry y="250" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="31" value="+setPortaRespondida(int : resposta)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="17" vertex="1">
<mxGeometry y="280" width="268" height="30" as="geometry"/>
</mxCell>
<mxCell id="24" value="Porta" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" parent="1" vertex="1">
<mxGeometry x="527" y="420" width="189" height="160" as="geometry"/>
</mxCell>
<mxCell id="25" value="Pergunta : pergunta" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="24" vertex="1">
<mxGeometry y="30" width="189" height="30" as="geometry"/>
</mxCell>
<mxCell id="26" value="Int : pontosMinimos " style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" parent="24" vertex="1">
<mxGeometry y="60" width="189" height="30" as="geometry"/>
</mxCell>
<mxCell id="28" value="Bool : foiRespondido" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="24" vertex="1">
<mxGeometry y="90" width="189" height="30" as="geometry"/>
</mxCell>
<mxCell id="51" value="" style="line;strokeWidth=2;html=1;" parent="24" vertex="1">
<mxGeometry y="120" width="189" height="10" as="geometry"/>
</mxCell>
<mxCell id="52" value="+verificarResposta(int : resposta)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="24" vertex="1">
<mxGeometry y="130" width="189" height="30" as="geometry"/>
</mxCell>
<mxCell id="30" style="edgeStyle=none;html=1;entryX=0.005;entryY=0.054;entryDx=0;entryDy=0;entryPerimeter=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="23" target="24" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="37" value="" style="edgeStyle=none;html=1;" parent="1" source="34" target="36" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="34" value="Game Start" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-243" y="480" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="39" value="" style="edgeStyle=none;html=1;" parent="1" source="36" target="38" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="36" value="Player anda pelo salão de portas" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-243" y="590" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="41" value="setPortaAtual" style="edgeStyle=none;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="38" target="42" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="-19" y="760" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="38" value="Player entra em porta" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-243" y="730" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="45" value="" style="edgeStyle=none;html=1;" parent="1" source="42" target="44" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="42" value="Camera se move pra sala atualizada com a pergunta atual" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="181" y="730" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="47" value="" style="edgeStyle=none;html=1;" parent="1" source="44" target="46" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="44" value="Player pode ler as 3 opções de resposta" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="181" y="870" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="49" value="" style="edgeStyle=none;html=1;" parent="1" source="46" target="48" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="50" value="setPortaRespondida" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="49" vertex="1" connectable="0">
<mxGeometry x="-0.1647" y="3" relative="1" as="geometry">
<mxPoint x="38" y="-3" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="57" value="updateCount" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="49" vertex="1" connectable="0">
<mxGeometry x="0.5822" y="1" relative="1" as="geometry">
<mxPoint x="17" y="-1" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="46" value="Seleciona uma como Radio button, e interage no fim da sala para enviar resposta" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="170" y="1010" width="142" height="60" as="geometry"/>
</mxCell>
<mxCell id="58" style="edgeStyle=none;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="48" target="38" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="59" style="edgeStyle=none;html=1;" parent="1" source="48" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="-183" y="1123.6666666666667" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="48" value="Camera e player voltam para o centro" style="whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="-243" y="1010" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="62" style="edgeStyle=none;html=1;" parent="1" source="60" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="-183" y="1207" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="60" value="Se tiver 20 pontos" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="-213" y="1127" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="61" value="You Win!" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-243" y="1210" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="63" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="672" y="-182" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="79" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1.007;exitY=0.068;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1" source="64" target="67">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="64" value="" style="shape=internalStorage;whiteSpace=wrap;html=1;backgroundOutline=1;dx=146;dy=48;" vertex="1" parent="1">
<mxGeometry x="877" y="-515" width="304" height="355" as="geometry"/>
</mxCell>
<mxCell id="65" value="State Machine" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="914" y="-512" width="70" height="36" as="geometry"/>
</mxCell>
<mxCell id="66" value="Prefab" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="1063" y="-506" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="67" value="List" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" vertex="1" parent="1">
<mxGeometry x="1308" y="-528" width="140" height="120" as="geometry"/>
</mxCell>
<mxCell id="68" value="background{}" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" vertex="1" parent="67">
<mxGeometry y="30" width="140" height="30" as="geometry"/>
</mxCell>
<mxCell id="69" value="ground()" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" vertex="1" parent="67">
<mxGeometry y="60" width="140" height="30" as="geometry"/>
</mxCell>
<mxCell id="70" value="door()" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" vertex="1" parent="67">
<mxGeometry y="90" width="140" height="30" as="geometry"/>
</mxCell>
<mxCell id="71" value="door" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;" vertex="1" parent="1">
<mxGeometry x="1502" y="-402" width="140" height="90" as="geometry"/>
</mxCell>
<mxCell id="72" value="portaSprite[0,1,2]" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" vertex="1" parent="71">
<mxGeometry y="30" width="140" height="30" as="geometry"/>
</mxCell>
<mxCell id="73" value="HeaderQ : String : UI" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;" vertex="1" parent="71">
<mxGeometry y="60" width="140" height="30" as="geometry"/>
</mxCell>
<mxCell id="75" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="70" target="71">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="76" value="Sprite" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="1529" y="-478" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="77" style="edgeStyle=none;html=1;" edge="1" parent="1" source="69" target="76">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="78" style="edgeStyle=none;html=1;" edge="1" parent="1" source="68" target="76">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="82" style="edgeStyle=none;html=1;" edge="1" parent="1" source="80" target="81">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="80" value="Start()<br>ForEachDoor()" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="912" y="-462" width="88" height="36" as="geometry"/>
</mxCell>
<mxCell id="81" value="Cria" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="1063" y="-441" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="84" style="edgeStyle=none;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="83" target="85">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="83" value="addScript()" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="924" y="-405" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="85" value="update" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="1063" y="-395" width="60" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>