This repository has been archived by the owner on Feb 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDamageTrackModel.drawio
94 lines (94 loc) · 14.4 KB
/
DamageTrackModel.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
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15" version="24.7.8">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="2021" dy="797" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="7dFGbwazJ8FtgxLGFD49-0" value="sensoreDanno" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="-250" y="40" width="450" height="646" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-1" value="+ nome: string<div>+ danno: double</div><div>+ probHit: int</div><div>+ probCrit: int</div><div>+ randN : int</div><div>+ nAtt: int</div><div>+ hit: int</div><div>+ miss: int</div><div>+ attacchiPerTurno: vector&lt;int&gt;</div><div>+ recordDanniPerTurno: vector&lt;double&gt;</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-0" vertex="1">
<mxGeometry y="30" width="450" height="144" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-2" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" parent="7dFGbwazJ8FtgxLGFD49-0" vertex="1">
<mxGeometry y="174" width="450" height="8" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-3" value="+ sensoreDanno(string n, double d, int nT, int nA)<div>+ sensoreDanno(string n, double d, int nT, int nA, vector&lt;double&gt; rDPT)</div><div>+ ~sensoreDanno()</div><div>+ generaValoriRandomGrafico() final : void</div><div>+ incrementaHit() final : void</div><div>+ incrementaMiss() final : void</div><div>+ getDanno() const : double</div><div>+ getProbHit() : int</div><div>+ getProbCrit() : int</div><div>+ getRand() : int</div><div>+ getNome() const : string</div><div>+ getNTurni() const: int</div><div>+ getAttacchiPerTurno() const: vector&lt;int&gt;</div><div>+ getAtt() const: int</div><div>+ getRecordDanniPerTurno() const: vector&lt;double&gt;</div><div>+ getNHit() const: int</div><div>+ getNMiss() const: int</div><div>+ getHitRate() const: int</div><div>+ getMaxDanno() const: int</div><div>+ setSizeAttacchiPerTurno() : void</div><div>+ setNome(const string&amp; n): void</div><div>+ setDanno(double d): void</div><div>+ setNTurni(int nT): void</div><div>+ setAtt(int nA): void</div><div>+ setAttacchiPerTurno(const vector&lt;int&gt;&amp; att): void</div><div>+ setRecordDanniPerTurno(const vector&lt;double&gt;&amp; record) : void</div><div>+ setHit(int hit) : void</div><div>+ setMiss(int miss) : void</div><div>+ calcolaDanno() : double</div><div>+ getHit() : double</div><div>+ toXML(const string&amp; filename) const: bool</div><div>+ accept(Visitor* v) : void</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-0" vertex="1">
<mxGeometry y="182" width="450" height="464" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-4" value="ContentVisitor" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=none;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="289" y="240" width="250" height="90" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-5" value="+ visitFisico(fisico*f) : void<div>+ visitMagico(magico *m) : void</div><div>+ visitSacro(sacro *s) : void</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-4" vertex="1">
<mxGeometry y="26" width="250" height="64" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-8" value="Fisico" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="-740" y="800" width="380" height="190" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-9" value="+ affilatura : int" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-8" vertex="1">
<mxGeometry y="26" width="380" height="26" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-10" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" parent="7dFGbwazJ8FtgxLGFD49-8" vertex="1">
<mxGeometry y="52" width="380" height="8" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-11" value="+ fisico(string n, double d, int nT, int nA, int aff)<div>+ fisico(string n, double d, int nT, int nA, vector&lt;double&gt; rDPT, int aff)</div><div>+ getAffilatura() const: int</div><div>+ getHit(): double</div><div>+ calcolaDanno(): double</div><div>+ toXML() : bool</div><div>+ setAff(int aff) : void</div><div>+ accept(Visitor* v) : void</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-8" vertex="1">
<mxGeometry y="60" width="380" height="130" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-12" value="Magico" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="-280" y="800" width="480" height="240" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-13" value="+ lvMagia : int<div>+ isInStatus : bool</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-12" vertex="1">
<mxGeometry y="26" width="480" height="34" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-14" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" parent="7dFGbwazJ8FtgxLGFD49-12" vertex="1">
<mxGeometry y="60" width="480" height="8" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-15" value="+ magico(string n, double d, int nT, int nA, int lvM, bool isInSta)<div>+ magico(string n, double d, int nT, int nA, vector&lt;double&gt; rDPT, int lvM, bool isInSta)</div><div>+ getLvMagia() const : int</div><div>+ checkCondition() const : bool</div><div>+ setStatus(): string</div><div>+ calcolaDanno(): double</div><div>+ getHit(): double</div><div>+ toXML(const string&amp; filename) const : bool</div><div>+ setLvMagia(int lvM) : void</div><div>+ setTheStatus(bool isInSta): void</div><div>+ accept(Visitor* v) : void</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-12" vertex="1">
<mxGeometry y="68" width="480" height="172" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-17" value="Sacro" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="280" y="800" width="500" height="308" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-18" value="+ lvFede : int<div>+ limitbreak : int</div><div>+ limitBar : vector&lt;int&gt;</div><div>+ enum {fedeBassa, fedeMedia, fedeAlta}</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-17" vertex="1">
<mxGeometry y="26" width="500" height="74" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-19" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" parent="7dFGbwazJ8FtgxLGFD49-17" vertex="1">
<mxGeometry y="100" width="500" height="8" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-20" value="+ sacro(string n, double d, int nT, int nA, int lvFede)<div>+ sacro(string n, double d, int nT, int nA, vector&lt;double&gt; rDPT, int lvFede, vector&lt;int&gt; limit)</div><div>+ getLvFede() const : int</div><div>+ getLimitBreak() const : int</div><div>+ getHit() : double</div><div>+ calcolaDanno() : double</div><div>+ setLimit() : void</div><div>+ checkLimit() : void</div><div>+ getValoriLimitBar() const : &nbsp;vector&lt;int&gt;</div><div>+ toXML(const string&amp; filename) const : bool</div><div>+ setLvFede(int lvFede) : void</div><div>+ setLimitBreak(int limitbreak): void</div><div>+ accept(Visitor* v) : void</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="7dFGbwazJ8FtgxLGFD49-17" vertex="1">
<mxGeometry y="108" width="500" height="200" as="geometry" />
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-22" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-570" y="750" as="sourcePoint" />
<mxPoint x="520" y="750" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-23" value="" style="endArrow=classic;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;entryX=0.555;entryY=1;entryDx=0;entryDy=0;entryPerimeter=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" target="7dFGbwazJ8FtgxLGFD49-3" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint y="750" as="sourcePoint" />
<mxPoint y="683.9959999999999" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-26" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;exitX=0.447;exitY=0;exitDx=0;exitDy=0;exitPerimeter=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="7dFGbwazJ8FtgxLGFD49-8" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-620" y="770" as="sourcePoint" />
<mxPoint x="-570" y="750" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-27" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;entryX=0.479;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" target="7dFGbwazJ8FtgxLGFD49-17" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="520" y="750" as="sourcePoint" />
<mxPoint x="630" y="660" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="7dFGbwazJ8FtgxLGFD49-28" value="" style="endArrow=none;html=1;rounded=0;fontSize=12;startSize=8;endSize=8;curved=1;exitX=0.584;exitY=-0.006;exitDx=0;exitDy=0;exitPerimeter=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="7dFGbwazJ8FtgxLGFD49-12" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-130" y="770" as="sourcePoint" />
<mxPoint y="750" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>