Add: Added Coverage Screenshots And htlmReport.
This commit is contained in:
@@ -0,0 +1,181 @@
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html id="htmlId">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>Coverage Report > Gatherer</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: Gatherer (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">Gatherer</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">
|
||||
100%
|
||||
</span>
|
||||
<span class="absValue">
|
||||
(7/7)
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
|
||||
<pre>
|
||||
<code class="sourceCode" id="sourceCode"> package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
|
||||
/**
|
||||
* Represents a Gatherer character card.
|
||||
*
|
||||
* <p>A Gatherer is a specific type of {@link Character} initialized with
|
||||
* {@link CharacterType#GATHERER}.
|
||||
*/
|
||||
public class Gatherer extends Character {
|
||||
|
||||
/**
|
||||
* Creates a Gatherer character card with the specified era.
|
||||
*
|
||||
* @param Era the era of the Gatherer card.
|
||||
*/
|
||||
public Gatherer(int Era) {
|
||||
<b class="fc"> super(Era, CharacterType.GATHERER);</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Gatherer character card with the specified era and minimum number of players.
|
||||
*
|
||||
* @param Era the era of the Gatherer card.
|
||||
* @param nMin the minimum number of players required for the card.
|
||||
*/
|
||||
public Gatherer(int Era, int nMin) {
|
||||
<b class="fc"> super(Era, CharacterType.GATHERER,nMin);</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Gatherer character card with the specified image id and era.
|
||||
*
|
||||
* @param idIMG the image identifier of the Gatherer card.
|
||||
* @param Era the era of the Gatherer card.
|
||||
*/
|
||||
public Gatherer(String idIMG,int Era) {
|
||||
<b class="fc"> super(idIMG,Era, CharacterType.GATHERER);</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Gatherer character card with the specified image id, era and
|
||||
* minimum number of players.
|
||||
*
|
||||
* @param idIMG the image identifier of the Gatherer card.
|
||||
* @param Era the era of the Gatherer card.
|
||||
* @param nMin the minimum number of players required for the card.
|
||||
*/
|
||||
public Gatherer(String idIMG,int Era, int nMin) {
|
||||
<b class="fc"> super(idIMG,Era, CharacterType.GATHERER,nMin);</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and returns a copy of this Gatherer card.
|
||||
*
|
||||
* @return a clone of this Gatherer card.
|
||||
*/
|
||||
@Override
|
||||
public Character clone() {
|
||||
<b class="fc"> return new Gatherer(getIdIMG(),getEra(), getNMin());</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts this Gatherer card into the specified player's Gatherer collection
|
||||
* and applies any building effects triggered by character set completion.
|
||||
*
|
||||
* @param player the player who receives the card.
|
||||
*/
|
||||
@Override
|
||||
public void insert(Player player) {
|
||||
<b class="fc"> player.getGatherers().add(this);</b>
|
||||
<b class="fc"> player.getBuildingCards().stream().filter(x->x.getEffectId()==0).forEach(x->x.applyEffect(player));</b>
|
||||
}
|
||||
}
|
||||
</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-14 21:53</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user