FIx: Fixed Coverage Screenshots And htmlRepot.
This commit is contained in:
@@ -0,0 +1,199 @@
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html id="htmlId">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>Coverage Report > PlayableCard</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</a>
|
||||
</div>
|
||||
|
||||
<h1>Coverage Summary for Class: PlayableCard (it.polimi.ingsw.gc14.Model)</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">PlayableCard</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">
|
||||
(8/8)
|
||||
</span>
|
||||
</td>
|
||||
<td class="coverageStat">
|
||||
<span class="percent">
|
||||
100%
|
||||
</span>
|
||||
<span class="absValue">
|
||||
(12/12)
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
|
||||
<pre>
|
||||
<code class="sourceCode" id="sourceCode"> package it.polimi.ingsw.gc14.Model;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* Abstract base class for all playable cards.
|
||||
* A PlayableCard is characterized by an era value.
|
||||
*/
|
||||
public abstract class PlayableCard implements Serializable {
|
||||
|
||||
/**
|
||||
* The image identifier of the playable card.
|
||||
*/
|
||||
private final String idIMG;
|
||||
|
||||
/**
|
||||
* Returns the image identifier of this playable card.
|
||||
*
|
||||
* @return the image identifier of this playable card.
|
||||
*/
|
||||
public String getIdIMG() {
|
||||
<b class="fc"> return idIMG;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* The era associated with this playable card.
|
||||
*/
|
||||
private final int era;
|
||||
|
||||
/**
|
||||
* Returns the era of this playable card.
|
||||
*
|
||||
* @return the era of this playable card.
|
||||
*/
|
||||
public int getEra(){
|
||||
<b class="fc"> return era;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a playable card with the specified era.
|
||||
*
|
||||
* @param era the era of the playable card.
|
||||
* @throws IllegalArgumentException if {@code era <= 0} or {@code era >= 4}.
|
||||
*/
|
||||
<b class="fc"> public PlayableCard(int era) throws IllegalArgumentException {</b>
|
||||
<b class="fc"> idIMG = "-1";</b>
|
||||
<b class="fc"> if (era > 0 && era < 4) {</b>
|
||||
<b class="fc"> this.era = era;</b>
|
||||
} else {
|
||||
<b class="fc"> throw new IllegalArgumentException();</b>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a playable card with the specified image id and era.
|
||||
*
|
||||
* @param idIMG the image identifier of the playable card.
|
||||
* @param era the era of the playable card.
|
||||
* @throws IllegalArgumentException if {@code era <= 0} or {@code era >= 4}.
|
||||
*/
|
||||
<b class="fc"> public PlayableCard(String idIMG, int era) throws IllegalArgumentException {</b>
|
||||
<b class="fc"> this.idIMG = idIMG;</b>
|
||||
<b class="fc"> if (era > 0 && era < 4) {</b>
|
||||
<b class="fc"> this.era = era;</b>
|
||||
} else {
|
||||
<b class="fc"> throw new IllegalArgumentException();</b>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the compact representation shown in the player hand panel.
|
||||
*
|
||||
* @return the player-hand string representation of this card.
|
||||
*/
|
||||
public abstract String toStringPlayer();
|
||||
|
||||
/**
|
||||
* Returns the representation shown on the board (offer track cards).
|
||||
*
|
||||
* @return the board string representation of this card.
|
||||
*/
|
||||
public abstract String toStringBoard();
|
||||
}
|
||||
</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