FIx: Fixed Coverage Screenshots And htmlRepot.

This commit is contained in:
GabrieleRadice
2026-06-19 22:57:43 +02:00
parent a4dc8b2540
commit 0129efe400
316 changed files with 4566 additions and 4497 deletions
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name sortedAsc
">
<a href="index_SORT_BY_NAME_DESC.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_BLOCK.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat sortedAsc
">
<a href="index_SORT_BY_BLOCK_DESC.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_BLOCK_DESC.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat sortedDesc
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_CLASS.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat sortedAsc
">
<a href="index_SORT_BY_CLASS_DESC.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_CLASS_DESC.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat sortedDesc
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_LINE.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat sortedAsc
">
<a href="index_SORT_BY_LINE_DESC.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_LINE_DESC.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat sortedDesc
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_METHOD.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat sortedAsc
">
<a href="index_SORT_BY_METHOD_DESC.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_METHOD_DESC.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat sortedDesc
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,370 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > it.polimi.ingsw.gc14.Model.Cards.Building.Effects</title>
<style type="text/css">
@import "../css/coverage.css";
@import "../css/idea.min.css";
</style>
<script type="text/javascript" src="../js/highlight.min.js"></script>
<script type="text/javascript" src="../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../index_SORT_BY_NAME_DESC.html">all classes</a>
<span class="separator">|</span>
it.polimi.ingsw.gc14.Model.Cards.Building.Effects</div>
<h1>Coverage Summary for Package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
<table class="coverageStats">
<tr>
<th class="name">Package</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.7%
</span>
<span class="absValue">
(36/38)
</span>
</td>
<td class="coverageStat">
<span class="percent">
92%
</span>
<span class="absValue">
(46/50)
</span>
</td>
<td class="coverageStat">
<span class="percent">
98.4%
</span>
<span class="absValue">
(127/129)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<table class="coverageStats">
<tr>
<th class="name sortedDesc
">
<a href="index.html">Class</a> </th>
<th class="coverageStat
">
<a href="index_SORT_BY_CLASS.html">Class, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_METHOD.html">Method, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_BLOCK.html">Branch, %</a>
</th>
<th class="coverageStat
">
<a href="index_SORT_BY_LINE.html">Line, %</a>
</th>
</tr>
<tr>
<td class="name"><a href="sources/source-7.html">Building8</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-6.html">Building4</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-5.html">Building13</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-4.html">Building11</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-3.html">Building10</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-2.html">Building1</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat"/>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
<tr>
<td class="name"><a href="sources/source-1.html">Building0</a></td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,263 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building0</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building0 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building0</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
81.2%
</span>
<span class="absValue">
(13/16)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(30/30)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
&nbsp;
&nbsp;
&nbsp;
&nbsp;/**
&nbsp; * Building effect that grants 5 food for each new complete set of
&nbsp; * 6 different character types obtained after purchasing this building.
&nbsp; *
&nbsp; * &lt;p&gt;Character sets already completed before the building is purchased
&nbsp; * are stored during initialization and do not provide food.
&nbsp; */
&nbsp;public class Building0 extends BuildingCard {
&nbsp;
&nbsp; /** Food units granted per newly completed character set. */
&nbsp; private static final int FOOD_PER_CHARACTER_SET = 5;
&nbsp;
&nbsp; /**
&nbsp; * Indicates whether the building effect has already been initialized
&nbsp; * after purchase.
&nbsp; */
&nbsp; private boolean purchased;
&nbsp;
&nbsp; /**
&nbsp; * Number of complete character sets already counted by this building effect.
&nbsp; */
&nbsp; private int numSet;
&nbsp;
&nbsp; /**
&nbsp; * Creates a building with the specified image identifier, era, price
&nbsp; * and prestige value.
&nbsp; *
&nbsp; * @param idImage the image identifier of the building.
&nbsp; * @param era the game era of the building.
&nbsp; * @param price the price in food of the building.
&nbsp; * @param prestigeValue the number of Prestige Points granted by this building
&nbsp; * at the end of the game.
&nbsp; */
&nbsp; public Building0(String idImage,int era,int price,int prestigeValue) {
<b class="fc">&nbsp; super(idImage,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType=EffectType.CARD_SET;</b>
<b class="fc">&nbsp; effectId=0;</b>
<b class="fc">&nbsp; purchased = false;</b>
<b class="fc">&nbsp; numSet = 0;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a building with the specified era, price and prestige value.
&nbsp; *
&nbsp; * @param era the game era of the building.
&nbsp; * @param price the price in food of the building.
&nbsp; * @param prestigeValue the number of Prestige Points granted by this building
&nbsp; * at the end of the game.
&nbsp; */
&nbsp; public Building0(int era,int price,int prestigeValue) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType=EffectType.CARD_SET;</b>
<b class="fc">&nbsp; effectId=0;</b>
<b class="fc">&nbsp; purchased = false;</b>
<b class="fc">&nbsp; numSet = 0;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Attempts to purchase the building and initializes its effect if the
&nbsp; * purchase succeeds.
&nbsp; *
&nbsp; * @param player the player who attempts to buy the building.
&nbsp; * @return {@code true} if the building is successfully purchased and initialized,
&nbsp; * {@code false} otherwise.
&nbsp; */
&nbsp; @Override
&nbsp; public boolean buy(Player player)
&nbsp; {
<b class="fc">&nbsp; if(!super.buy(player))</b>
<b class="fc">&nbsp; return false;</b>
<b class="fc">&nbsp; initialize(player);</b>
<b class="fc">&nbsp; return true;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Initializes the building effect by storing the number of complete
&nbsp; * character sets already owned by the player at the moment of purchase.
&nbsp; *
&nbsp; * &lt;p&gt;The initialization is performed only once.
&nbsp; *
&nbsp; * @param player the player who owns the building.
&nbsp; */
&nbsp; public void initialize(Player player)
&nbsp; {
<b class="pc">&nbsp; if(purchased)</b>
&nbsp; {
&nbsp; return;
&nbsp; }
<b class="fc">&nbsp; numSet=player.getNType(CharacterType.INVENTOR);</b>
<b class="fc">&nbsp; for(CharacterType type : CharacterType.values())</b>
&nbsp; {
<b class="pc">&nbsp; if(player.getNType(type)&lt;=numSet)</b>
<b class="fc">&nbsp; numSet=player.getNType(type);</b>
&nbsp; }
<b class="fc">&nbsp; purchased = true;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a new building instance with the same configuration values
&nbsp; * as this card.
&nbsp; *
&nbsp; * &lt;p&gt;The runtime state of the effect, such as initialization status and
&nbsp; * counted character sets, is not copied.
&nbsp; *
&nbsp; * @return a new building card with the same base properties.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building0(getIdIMG(),getEra(),getPrice(),getPrestigeValue());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Applies the building effect to the specified player.
&nbsp; *
&nbsp; * &lt;p&gt;The method counts the complete character sets currently owned by the player
&nbsp; * and grants 5 food for each set completed since the last stored value.
&nbsp; *
&nbsp; * @param player the player who owns the building.
&nbsp; * @throws IllegalArgumentException if the specified player does not own this card.
&nbsp; */
&nbsp; public void applyEffect(Player player) throws IllegalArgumentException {
<b class="fc">&nbsp; if(!player.getBuildingCards().contains(this))</b>
<b class="fc">&nbsp; throw new IllegalArgumentException();</b>
<b class="fc">&nbsp; int min_temp=player.getNType(CharacterType.INVENTOR);</b>
<b class="fc">&nbsp; for(CharacterType type : CharacterType.values())</b>
&nbsp; {
<b class="pc">&nbsp; if(player.getNType(type)&lt;=min_temp)</b>
<b class="fc">&nbsp; min_temp=player.getNType(type);</b>
&nbsp; }
<b class="fc">&nbsp; if(min_temp&lt;=numSet)</b>
&nbsp; {
&nbsp; return;
&nbsp; }
<b class="fc">&nbsp; player.addFood(FOOD_PER_CHARACTER_SET *(min_temp-numSet));</b>
<b class="fc">&nbsp; numSet=min_temp;</b>
&nbsp; }
&nbsp;
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,182 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building1</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building1 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building1</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
83.3%
</span>
<span class="absValue">
(5/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
&nbsp;
&nbsp;/**
&nbsp; * Building effect that grants a discount of 1 food during the Sustenance Event
&nbsp; * for each character of the indicated type present in the player&#39;s tribe.
&nbsp; */
&nbsp;public class Building1 extends BuildingCard {
&nbsp;
&nbsp; /**
&nbsp; * Character type involved in the building effect.
&nbsp; */
&nbsp; private final CharacterType icon ;
&nbsp;
&nbsp; /**
&nbsp; * Returns the character type associated with this building effect.
&nbsp; *
&nbsp; * @return the character type associated with this building effect.
&nbsp; */
<b class="fc">&nbsp; public CharacterType getIcon() {return icon;}</b>
&nbsp;
&nbsp; /**
&nbsp; * Creates a building with the specified era, price, prestige value
&nbsp; * and character type involved in its effect.
&nbsp; *
&nbsp; * @param era the game era of the building.
&nbsp; * @param price the price in food of the building.
&nbsp; * @param prestigeValue the number of Prestige Points gained from this building at the end of the game.
&nbsp; * @param icon the character type used by the building effect.
&nbsp; */
&nbsp; public Building1(int era, int price,int prestigeValue, CharacterType icon) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType = EffectType.ON_EVENT;</b>
<b class="fc">&nbsp; effectId = 1;</b>
<b class="fc">&nbsp; this.icon = icon;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a building with the specified image identifier, era, price,
&nbsp; * prestige value and character type involved in its effect.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the building.
&nbsp; * @param era the game era of the building.
&nbsp; * @param price the price in food of the building.
&nbsp; * @param prestigeValue the number of Prestige Points gained from this building at the end of the game.
&nbsp; * @param icon the character type used by the building effect.
&nbsp; */
&nbsp; public Building1(String idIMG,int era, int price,int prestigeValue, CharacterType icon) {
<b class="fc">&nbsp; super(idIMG,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType = EffectType.ON_EVENT;</b>
<b class="fc">&nbsp; effectId = 1;</b>
<b class="fc">&nbsp; this.icon = icon;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a new building instance with the same configuration values
&nbsp; * as this card.
&nbsp; *
&nbsp; * @return a new building card with the same base properties and icon.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building1(getIdIMG(),getEra(),getPrice(),getPrestigeValue(),getIcon());</b>
&nbsp; }
&nbsp;
&nbsp; @Override
&nbsp; public String toStringBoard() {
<b class="fc">&nbsp; return super.toStringBoard() + &quot; (Icon:&quot; + this.icon.toString().substring(0, 3) + &quot;)&quot;;</b>
&nbsp; }
&nbsp;
&nbsp; @Override
&nbsp; public String toStringPlayer() {
<b class="nc">&nbsp; return super.toStringPlayer() + &quot; (Icon:&quot; + this.icon.toString().substring(0, 3) + &quot;)&quot;;</b>
&nbsp; }
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,196 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building10</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building10 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building10</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(14/14)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;
&nbsp;/**
&nbsp; * At the end of the game, the player gains 6 Prestige Points
&nbsp; * for each complete set of character types in their tribe.
&nbsp; *
&nbsp; * &lt;p&gt;A complete set contains one character card of each {@link CharacterType}.
&nbsp; */
&nbsp;public class Building10 extends BuildingCard {
&nbsp;
&nbsp; /** Prestige points granted per complete character set at end of game. */
&nbsp; private static final int PRESTIGE_PER_CHARACTER_SET = 6;
&nbsp;
&nbsp; /**
&nbsp; * Creates a Building10 card with the specified era, price, and prestige value.
&nbsp; *
&nbsp; * @param era the era of the building card.
&nbsp; * @param price the price of the building card.
&nbsp; * @param prestigeValue the prestige value of the building card.
&nbsp; */
&nbsp; public Building10(int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId=10;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a Building10 card with the specified image id, era, price, and prestige value.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the building card.
&nbsp; * @param era the era of the building card.
&nbsp; * @param price the price of the building card.
&nbsp; * @param prestigeValue the prestige value of the building card.
&nbsp; */
&nbsp; public Building10(String idIMG,int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(idIMG,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId=10;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates and returns a copy of this Building10 card.
&nbsp; *
&nbsp; * @return a clone of this Building10 card.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building10(getIdIMG(),getEra(),getPrice(),getPrestigeValue());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Applies the effect of this building card to the specified player.
&nbsp; *
&nbsp; * &lt;p&gt;The effect grants 6 Prestige Points for each complete set of character
&nbsp; * cards owned by the player, where a complete set contains one card of each
&nbsp; * {@link CharacterType}.
&nbsp; *
&nbsp; * @param player the player to whom the effect is applied.
&nbsp; * @throws IllegalArgumentException if the player does not own this building card.
&nbsp; */
&nbsp; public void applyEffect(Player player) throws IllegalArgumentException {
<b class="fc">&nbsp; if(!player.getBuildingCards().contains(this))</b>
<b class="fc">&nbsp; throw new IllegalArgumentException();</b>
<b class="fc">&nbsp; int numSet=player.getNType(CharacterType.INVENTOR);</b>
<b class="fc">&nbsp; for(CharacterType type : CharacterType.values())</b>
&nbsp; {
<b class="fc">&nbsp; if(player.getNType(type)&lt;=numSet)</b>
<b class="fc">&nbsp; numSet=player.getNType(type);</b>
&nbsp; }
&nbsp;
<b class="fc">&nbsp; player.addPrestige(PRESTIGE_PER_CHARACTER_SET * numSet);</b>
&nbsp; }
&nbsp;
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,227 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building11</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building11 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building11</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
87.5%
</span>
<span class="absValue">
(7/8)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
94.4%
</span>
<span class="absValue">
(17/18)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;/**
&nbsp; * At the end of the game, the player gains Prestige Points based on the number
&nbsp; * of cards of the indicated character type in their tribe.
&nbsp; *
&nbsp; * &lt;p&gt;The gained amount is equal to the number of matching character cards
&nbsp; * multiplied by the building&#39;s prestige multiplier.
&nbsp; */
&nbsp;public class Building11 extends BuildingCard {
&nbsp;
&nbsp; /**
&nbsp; * The character type involved in this building effect.
&nbsp; */
&nbsp; private final CharacterType characterType;
&nbsp;
&nbsp; /**
&nbsp; * Returns the CharacterType associated with this building card effect.
&nbsp; *
&nbsp; * @return the CharacterType associated with this building card effect.
&nbsp; */
<b class="fc">&nbsp; public CharacterType getIcon() { return characterType; }</b>
&nbsp;
&nbsp; /**
&nbsp; * The prestige multiplier applied per matching character card at end of game.
&nbsp; */
&nbsp; private final int prestigeMul;
&nbsp;
&nbsp; /**
&nbsp; * Returns the prestige multiplier associated with this building card effect.
&nbsp; *
&nbsp; * @return the prestige multiplier associated with this building card effect.
&nbsp; */
<b class="fc">&nbsp; public int getPrestigeMul() {return prestigeMul;}</b>
&nbsp;
&nbsp; /**
&nbsp; * Creates a Building11 card with the specified era, price, prestige value,
&nbsp; * character type icon, and prestige multiplier.
&nbsp; *
&nbsp; * @param era the era of the building card.
&nbsp; * @param price the price of the building card.
&nbsp; * @param prestigeValue the prestige value of the building card.
&nbsp; * @param icon the CharacterType associated with the building card effect.
&nbsp; * @param prestigeMul the prestige multiplier of the building card effect.
&nbsp; */
&nbsp; public Building11(int era, int price,int prestigeValue, CharacterType icon, int prestigeMul) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType = EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId = 11;</b>
<b class="fc">&nbsp; this.characterType = icon;</b>
<b class="fc">&nbsp; this.prestigeMul = prestigeMul;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a Building11 card with the specified image id, era, price, prestige value,
&nbsp; * character type icon, and prestige multiplier.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the building card.
&nbsp; * @param era the era of the building card.
&nbsp; * @param price the price of the building card.
&nbsp; * @param prestigeValue the prestige value of the building card.
&nbsp; * @param icon the CharacterType associated with the building card effect.
&nbsp; * @param prestigeMul the prestige multiplier of the building card effect.
&nbsp; */
&nbsp; public Building11(String idIMG,int era, int price,int prestigeValue, CharacterType icon, int prestigeMul) {
<b class="fc">&nbsp; super(idIMG,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType = EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId = 11;</b>
<b class="fc">&nbsp; this.characterType = icon;</b>
<b class="fc">&nbsp; this.prestigeMul = prestigeMul;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates and returns a copy of this Building11 card.
&nbsp; *
&nbsp; * @return a clone of this Building11 card.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building11(getIdIMG(),getEra(),getPrice(),getPrestigeValue(), getIcon(), getPrestigeMul());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Applies the effect of this building card to the specified player.
&nbsp; * The effect grants prestige points equal to the number of cards of the
&nbsp; * associated CharacterType owned by the player, multiplied by the prestige multiplier.
&nbsp; *
&nbsp; * @param player the player to whom the effect is applied.
&nbsp; * @throws IllegalArgumentException if the player does not own this building card.
&nbsp; */
&nbsp; public void applyEffect(Player player) throws IllegalArgumentException {
<b class="fc">&nbsp; if(!player.getBuildingCards().contains(this))</b>
<b class="fc">&nbsp; throw new IllegalArgumentException();</b>
<b class="fc">&nbsp; player.addPrestige(player.getNType(getIcon()) * this.getPrestigeMul());</b>
&nbsp; }
&nbsp;
&nbsp; @Override
&nbsp; public String toStringBoard() {
<b class="fc">&nbsp; return super.toStringBoard() + &quot;+&quot; + this.characterType.toString().substring(0, 3) + &quot;×&quot; + this.prestigeMul;</b>
&nbsp; }
&nbsp;
&nbsp; @Override
&nbsp; public String toStringPlayer() {
<b class="nc">&nbsp; return super.toStringPlayer() + &quot; (\uD83C\uDFC5:&quot; + this.characterType.toString().substring(0, 3) + &quot;×&quot; + this.prestigeMul + &quot;)&quot;;</b>
&nbsp; }
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,182 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building13</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building13 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building13</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(2/2)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(10/10)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;/**
&nbsp; * At the end of the game, this building grants 25 Prestige Points
&nbsp; * to the player who owns it.
&nbsp; */
&nbsp;public class Building13 extends BuildingCard{
&nbsp;
&nbsp; /** Prestige points granted at end of game by this building. */
&nbsp; private static final int PRESTIGE_AWARD = 25;
&nbsp;
&nbsp; /**
&nbsp; * Creates a Building13 card with the specified era, price, and prestige value.
&nbsp; *
&nbsp; * @param era the era of the building card.
&nbsp; * @param price the price of the building card.
&nbsp; * @param prestigeValue the prestige value of the building card.
&nbsp; */
&nbsp; public Building13(int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId=13;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a Building13 card with the specified image id, era, price, and prestige value.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the building card.
&nbsp; * @param era the era of the building card.
&nbsp; * @param price the price of the building card.
&nbsp; * @param prestigeValue the prestige value of the building card.
&nbsp; */
&nbsp; public Building13(String idIMG,int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(idIMG,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId=13;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates and returns a copy of this Building13 card.
&nbsp; *
&nbsp; * @return a clone of this Building13 card.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building13(getIdIMG(),getEra(),getPrice(),getPrestigeValue());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Applies the effect of this building card to the specified player,
&nbsp; * granting 25 Prestige Points.
&nbsp; *
&nbsp; * @param player the player to whom the effect is applied.
&nbsp; * @throws IllegalArgumentException if the player does not own this building card.
&nbsp; */
&nbsp; public void applyEffect(Player player) throws IllegalArgumentException {
<b class="fc">&nbsp; if(!player.getBuildingCards().contains(this))</b>
<b class="fc">&nbsp; throw new IllegalArgumentException();</b>
<b class="fc">&nbsp; player.addPrestige(PRESTIGE_AWARD);</b>
&nbsp; }
&nbsp;
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,273 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building4</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building4 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building4</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(6/6)
</span>
</td>
<td class="coverageStat">
<span class="percent">
95%
</span>
<span class="absValue">
(19/20)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(34/34)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Inventor;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;import java.util.HashMap;
&nbsp;
&nbsp;/**
&nbsp; * Building effect that grants 3 food for each new pair of identical inventors
&nbsp; * obtained after purchasing this building.
&nbsp; *
&nbsp; * &lt;p&gt;Pairs of identical inventors already owned at the moment of purchase
&nbsp; * are stored during initialization and do not provide food.
&nbsp; */
&nbsp;public class Building4 extends BuildingCard {
&nbsp;
&nbsp; /** Food units granted per newly completed inventor pair. */
&nbsp; private static final int FOOD_PER_INVENTOR_PAIR = 3;
&nbsp;
&nbsp; /**
&nbsp; * Indicates whether the building effect has already been initialized
&nbsp; * after purchase.
&nbsp; */
&nbsp; private boolean purchased;
&nbsp;
&nbsp; /**
&nbsp; * Number of inventor pairs already counted by this building effect.
&nbsp; */
&nbsp; private int numPair;
&nbsp;
&nbsp; /**
&nbsp; * Creates a building with the specified era, price and prestige value.
&nbsp; *
&nbsp; * @param era The game era of the building.
&nbsp; * @param price The price (in food) of the building.
&nbsp; * @param prestigeValue The number of Prestige Points gained from this building at the end of the game.
&nbsp; */
&nbsp; public Building4(int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.INVENTOR_PAIR;</b>
<b class="fc">&nbsp; effectId=4;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a building with the specified image identifier, era, price
&nbsp; * and prestige value.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the building.
&nbsp; * @param era the game era of the building.
&nbsp; * @param price the price in food of the building.
&nbsp; * @param prestigeValue the number of Prestige Points gained from this building at the end of the game.
&nbsp; */
&nbsp; public Building4(String idIMG,int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(idIMG,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.INVENTOR_PAIR;</b>
<b class="fc">&nbsp; effectId=4;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Initializes the building effect by storing the number of pairs of identical
&nbsp; * inventors already owned by the player at the moment of purchase.
&nbsp; *
&nbsp; * &lt;p&gt;The initialization is performed only once.
&nbsp; *
&nbsp; * @param player the player who owns the building.
&nbsp; */
&nbsp; public void initialize(Player player)
&nbsp; {
<b class="pc">&nbsp; if(purchased)</b>
&nbsp; {
&nbsp; return;
&nbsp; }
<b class="fc">&nbsp; HashMap&lt;Integer,Integer&gt; map = new HashMap&lt;&gt;();</b>
<b class="fc">&nbsp; for(int i=0;i&lt;10;i++)</b>
&nbsp; {
<b class="fc">&nbsp; map.put(i,0);</b>
&nbsp; }
<b class="fc">&nbsp; for(Inventor inv : player.getInventors())</b>
&nbsp; {
<b class="fc">&nbsp; map.merge(inv.getIcon(),1,Integer::sum);</b>
&nbsp; }
<b class="fc">&nbsp; numPair=0;</b>
<b class="fc">&nbsp; for(Integer i : map.values())</b>
&nbsp; {
<b class="fc">&nbsp; numPair+=(i/2);</b>
&nbsp; }
<b class="fc">&nbsp; purchased = true;</b>
&nbsp;
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Attempts to purchase the building and initializes its effect if the
&nbsp; * purchase succeeds.
&nbsp; *
&nbsp; * @param player The player who buys the building.
&nbsp; * @return {@code true} if the building is successfully purchased and initialized,
&nbsp; * {@code false} otherwise.
&nbsp; */
&nbsp; @Override
&nbsp; public boolean buy(Player player)
&nbsp; {
<b class="fc">&nbsp; if(!super.buy(player))</b>
<b class="fc">&nbsp; return false;</b>
<b class="fc">&nbsp; initialize(player);</b>
<b class="fc">&nbsp; return true;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates a new building instance with the same configuration values
&nbsp; * as this card.
&nbsp; *
&nbsp; * &lt;p&gt;The runtime state of the effect, such as initialization status and
&nbsp; * counted inventor pairs, is not copied.
&nbsp; *
&nbsp; * @return a new building card with the same base properties.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building4(getIdIMG(),getEra(),getPrice(),getPrestigeValue());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Applies the building effect to the specified player.
&nbsp; *
&nbsp; * &lt;p&gt;The method counts the current number of pairs of identical inventors
&nbsp; * and grants 3 food for each pair obtained since the last stored value.
&nbsp; *
&nbsp; * @param player The player who owns the building.
&nbsp; * @throws IllegalArgumentException Thrown if the specified player does not own this card.
&nbsp; */
&nbsp; public void applyEffect(Player player) throws IllegalArgumentException {
<b class="fc">&nbsp; if(!player.getBuildingCards().contains(this))</b>
<b class="fc">&nbsp; throw new IllegalArgumentException();</b>
<b class="fc">&nbsp; HashMap&lt;Integer,Integer&gt; map = new HashMap&lt;&gt;();</b>
<b class="fc">&nbsp; for(int i=0;i&lt;10;i++)</b>
&nbsp; {
<b class="fc">&nbsp; map.put(i,0);</b>
&nbsp; }
<b class="fc">&nbsp; for(Inventor inv : player.getInventors())</b>
&nbsp; {
<b class="fc">&nbsp; map.merge(inv.getIcon(),1,Integer::sum);</b>
&nbsp; }
<b class="fc">&nbsp; int temp=0;</b>
<b class="fc">&nbsp; for(Integer i : map.values())</b>
&nbsp; {
<b class="fc">&nbsp; temp+=(i/2);</b>
&nbsp; }
<b class="fc">&nbsp; if(temp&lt;= numPair)</b>
&nbsp; {
&nbsp; return;
&nbsp; }
<b class="fc">&nbsp; player.addFood(FOOD_PER_INVENTOR_PAIR *(temp-numPair));</b>
<b class="fc">&nbsp; numPair = temp;</b>
&nbsp; }
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>
@@ -0,0 +1,182 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Building8</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a>
</div>
<h1>Coverage Summary for Class: Building8 (it.polimi.ingsw.gc14.Model.Cards.Building.Effects)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Branch, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">Building8</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(4/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(11/11)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Builder;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;
&nbsp;/**
&nbsp; * At the end of the game, you gain double the Prestige Points indicated on the Builder cards in your tribe.
&nbsp; */
&nbsp;public class Building8 extends BuildingCard {
&nbsp;
&nbsp; /**
&nbsp; * Constructor of the building
&nbsp; * @param era The game era of the building.
&nbsp; * @param price The price (in food) of the building.
&nbsp; * @param prestigeValue The number of Prestige Points gained from this building at the end of the game.
&nbsp; */
&nbsp; public Building8(int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId=8;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Constructor of the building.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the building.
&nbsp; * @param era the game era of the building.
&nbsp; * @param price the price in food of the building.
&nbsp; * @param prestigeValue the number of Prestige Points gained from this building at the end of the game.
&nbsp; */
&nbsp; public Building8(String idIMG,int era, int price,int prestigeValue) {
<b class="fc">&nbsp; super(idIMG,era,price,prestigeValue);</b>
<b class="fc">&nbsp; effectType= EffectType.FINAL;</b>
<b class="fc">&nbsp; effectId=8;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Method to clone the building: it creates an exact copy.
&nbsp; * @return The new copy of the building.
&nbsp; */
&nbsp; @Override
&nbsp; public BuildingCard clone() {
<b class="fc">&nbsp; return new Building8(getIdIMG(),getEra(),getPrice(),getPrestigeValue());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Applies the building effect by granting additional Prestige Points equal to
&nbsp; * the Prestige Value of each Builder card owned by the player.
&nbsp; *
&nbsp; * &lt;p&gt;This effectively doubles the contribution of Builder cards to the final score.
&nbsp; *
&nbsp; * @param player The player who owns the building.
&nbsp; * @throws IllegalArgumentException Thrown if the specified player does not own this building.
&nbsp; */
&nbsp; public void applyEffect(Player player) throws IllegalArgumentException {
<b class="fc">&nbsp; if(!player.getBuildingCards().contains(this))</b>
<b class="fc">&nbsp; throw new IllegalArgumentException();</b>
<b class="fc">&nbsp; for (Builder builder : player.getBuilders()) {</b>
<b class="fc">&nbsp; player.addPrestige(builder.getPrestigeValue());</b>
&nbsp; }
&nbsp; }
&nbsp;
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-19 22:53</div>
</div>
</body>
</html>