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,192 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > Artist</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.TribeCards.Characters</a>
</div>
<h1>Coverage Summary for Class: Artist (it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters)</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">Artist</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">
88.9%
</span>
<span class="absValue">
(8/9)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character;
&nbsp;import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;/**
&nbsp; * Represents an Artist character card.
&nbsp; *
&nbsp; * &lt;p&gt;An Artist is a specific type of {@link Character} initialized with
&nbsp; * {@link CharacterType#ARTIST}.
&nbsp; */
&nbsp;public class Artist extends Character {
&nbsp;
&nbsp; /**
&nbsp; * Creates an Artist character card with the specified era.
&nbsp; *
&nbsp; * @param Era the era of the Artist card.
&nbsp; */
&nbsp; public Artist(int Era) {
<b class="fc">&nbsp; super(Era, CharacterType.ARTIST);</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates an Artist character card with the specified Era and minimum number of players required to play it.
&nbsp; *
&nbsp; * @param Era the era of the Artist card.
&nbsp; * @param nMin the minimum number of players required for the card.
&nbsp; */
&nbsp; public Artist(int Era,int nMin) {
<b class="fc">&nbsp; super(Era, CharacterType.ARTIST,nMin);</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates an Artist character card with the specified image id and era.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the Artist card.
&nbsp; * @param Era the era of the Artist card.
&nbsp; */
&nbsp; public Artist(String idIMG,int Era) {
<b class="fc">&nbsp; super(idIMG,Era, CharacterType.ARTIST);</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates an Artist character card with the specified image id, era and
&nbsp; * minimum number of players required to play it.
&nbsp; *
&nbsp; * @param idIMG the image identifier of the Artist card.
&nbsp; * @param Era the era of the Artist card.
&nbsp; * @param nMin the minimum number of players required for the card.
&nbsp; */
&nbsp; public Artist(String idIMG,int Era,int nMin) {
<b class="fc">&nbsp; super(idIMG,Era, CharacterType.ARTIST,nMin);</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates and returns a copy of this Artist card.
&nbsp; *
&nbsp; * @return a clone of this Artist card.
&nbsp; */
&nbsp; @Override
&nbsp; public Character clone() {
<b class="fc">&nbsp; return new Artist(getIdIMG(),getEra(), getNMin());</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Inserts this Artist card into the specified player&#39;s Artist collection
&nbsp; * and applies any building effects triggered by character set completion.
&nbsp; *
&nbsp; * @param player the player who receives the card.
&nbsp; */
&nbsp; @Override
&nbsp; public void insert(Player player) {
<b class="fc">&nbsp; player.getArtists().add(this);</b>
<b class="fc">&nbsp; player.getBuildingCards().stream().filter(x-&gt;x.getEffectId()==0).forEach(x-&gt;x.applyEffect(player));</b>
&nbsp; }
&nbsp;
&nbsp; @Override
&nbsp; public String toStringPlayer() {
<b class="fc">&nbsp; return &quot;\uD83C\uDFA8&quot;;</b>
&nbsp; }
&nbsp;
&nbsp; @Override
&nbsp; public String toStringBoard() {
<b class="nc">&nbsp; return &quot;ARTIST&quot;;</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>