FIx: Fixed Coverage Screenshots And htmlRepot.
This commit is contained in:
@@ -0,0 +1,197 @@
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html id="htmlId">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>Coverage Report > Character</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</a>
|
||||
</div>
|
||||
|
||||
<h1>Coverage Summary for Class: Character (it.polimi.ingsw.gc14.Model.Cards.TribeCards)</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">Character</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">
|
||||
(5/5)
|
||||
</span>
|
||||
</td>
|
||||
<td class="coverageStat">
|
||||
<span class="percent">
|
||||
100%
|
||||
</span>
|
||||
<span class="absValue">
|
||||
(9/9)
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
|
||||
<pre>
|
||||
<code class="sourceCode" id="sourceCode"> package it.polimi.ingsw.gc14.Model.Cards.TribeCards;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCard;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
|
||||
/**
|
||||
* Abstract base class for all character cards.
|
||||
*
|
||||
* <p>A Character is a {@link TribeCard} that is not an event card and is associated
|
||||
* with a specific {@link CharacterType}.
|
||||
*/
|
||||
public abstract class Character extends TribeCard implements Cloneable {
|
||||
|
||||
/**
|
||||
* The specific type of this character card.
|
||||
*/
|
||||
private final CharacterType type;
|
||||
|
||||
/**
|
||||
* Returns the type of this character card.
|
||||
*
|
||||
* @return the type of this character card.
|
||||
*/
|
||||
public CharacterType getType() {
|
||||
<b class="fc"> return type;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a character card with the specified era and character type.
|
||||
*
|
||||
* @param Era the era of the character card.
|
||||
* @param type the type of the character card.
|
||||
*/
|
||||
public Character(int Era, CharacterType type){
|
||||
<b class="fc"> super(Era,false );</b>
|
||||
<b class="fc"> this.type = type;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a character card with the specified image id, era and character type.
|
||||
*
|
||||
* @param idIMG the image identifier of the character card.
|
||||
* @param Era the era of the character card.
|
||||
* @param type the type of the character card.
|
||||
*/
|
||||
public Character(String idIMG,int Era, CharacterType type){
|
||||
<b class="fc"> super(idIMG,Era,false );</b>
|
||||
<b class="fc"> this.type = type;</b>
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a character card with the specified era, character type,
|
||||
* and minimum number of players.
|
||||
*
|
||||
* @param Era the era of the character card.
|
||||
* @param type the type of the character card.
|
||||
* @param nMin the minimum number of players required for the card.
|
||||
*/
|
||||
public Character(int Era, CharacterType type,int nMin){
|
||||
<b class="fc"> super(Era,false ,nMin);</b>
|
||||
<b class="fc"> this.type = type;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a character card with the specified image id, era, character type,
|
||||
* and minimum number of players.
|
||||
*
|
||||
* @param idIMG the image identifier of the character card.
|
||||
* @param Era the era of the character card.
|
||||
* @param type the type of the character card.
|
||||
* @param nMin the minimum number of players required for the card.
|
||||
*/
|
||||
public Character(String idIMG,int Era, CharacterType type,int nMin){
|
||||
<b class="fc"> super(idIMG,Era,false ,nMin);</b>
|
||||
<b class="fc"> this.type = type;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and returns a copy of this character card.
|
||||
*
|
||||
* @return a clone of this character card.
|
||||
*/
|
||||
@Override
|
||||
public abstract Character clone();
|
||||
|
||||
/**
|
||||
* Inserts this character card into the appropriate collection of the specified player.
|
||||
*
|
||||
* @param player the player who receives the character card.
|
||||
*/
|
||||
public abstract void insert(Player player);
|
||||
}
|
||||
</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>
|
||||
Reference in New Issue
Block a user