-
Notifications
You must be signed in to change notification settings - Fork 0
/
FactoryMethod.drawio
46 lines (46 loc) · 6.26 KB
/
FactoryMethod.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
<mxfile host="app.diagrams.net" modified="2023-06-28T03:10:04.806Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" etag="Bmm19E3jUPjSSxhVYOjJ" version="21.5.0" type="github">
<diagram name="Page-1" id="hFhVHHIHuJJSIjqDJR9m">
<mxGraphModel dx="1134" dy="747" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="Tc5uc7weR5ZfRKuwehPr-1" value="<p style="margin:0px;margin-top:4px;text-align:center;"><br><b>Player</b></p><hr size="1"><p style="margin:0px;margin-left:4px;">+ hp: int<br>+ max_hp: int</p><hr size="1"><p style="margin:0px;margin-left:4px;">+ get_weapon(): Weapon<br>+ attack(other: Player)</p><p style="margin:0px;margin-left:4px;">+ under_attack(val: int)</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="172" y="150" width="190" height="140" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;endArrow=block;endFill=1;" edge="1" parent="1" source="Tc5uc7weR5ZfRKuwehPr-2" target="Tc5uc7weR5ZfRKuwehPr-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-2" value="<p style="margin:0px;margin-top:4px;text-align:center;"><br><b>Player</b></p><hr size="1"><p style="margin:0px;margin-left:4px;">+ hp: int<br>+ max_hp: int</p><hr size="1"><p style="margin:0px;margin-left:4px;">+ get_weapon(): Weapon<br>+ attack(other, Player)</p><p style="margin:0px;margin-left:4px;">+ under_attack(val: int)</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="292" y="340" width="190" height="140" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;endArrow=block;endFill=1;" edge="1" parent="1" source="Tc5uc7weR5ZfRKuwehPr-3" target="Tc5uc7weR5ZfRKuwehPr-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-3" value="<p style="margin:0px;margin-top:4px;text-align:center;"><br><b>Player</b></p><hr size="1"><p style="margin:0px;margin-left:4px;">+ hp: int<br>+ max_hp: int</p><hr size="1"><p style="margin:0px;margin-left:4px;">+ get_weapon(): Weapon<br>+ attack(other, Player)</p><p style="margin:0px;margin-left:4px;">+ under_attack(val: int)</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="42" y="340" width="190" height="140" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-5" value="<p style="margin:0px;margin-top:4px;text-align:center;"><i>&lt;&lt;Interface&gt;&gt;</i><br><b>Weapon</b></p><hr size="1"><p style="margin:0px;margin-left:4px;">...</p><hr size="1"><p style="margin:0px;margin-left:4px;">+ damage()<br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="562" y="165" width="190" height="110" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;endArrow=block;endFill=0;dashPattern=12 12;" edge="1" parent="1" source="Tc5uc7weR5ZfRKuwehPr-6" target="Tc5uc7weR5ZfRKuwehPr-5">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-6" value="<p style="margin:0px;margin-top:4px;text-align:center;"><br><b>AK47</b></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="521" y="380" width="140" height="60" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;endArrow=block;endFill=0;dashPattern=12 12;" edge="1" parent="1" source="Tc5uc7weR5ZfRKuwehPr-8" target="Tc5uc7weR5ZfRKuwehPr-5">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-8" value="<p style="margin:0px;margin-top:4px;text-align:center;"><br><b>UZI</b></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="671" y="380" width="140" height="60" as="geometry" />
</mxCell>
<mxCell id="Tc5uc7weR5ZfRKuwehPr-9" value="" style="endArrow=diamondThin;endFill=0;endSize=24;html=1;rounded=0;exitX=0;exitY=0.75;exitDx=0;exitDy=0;" edge="1" parent="1" source="Tc5uc7weR5ZfRKuwehPr-5">
<mxGeometry width="160" relative="1" as="geometry">
<mxPoint x="891" y="170" as="sourcePoint" />
<mxPoint x="361" y="248" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>