Add: Added Coverage Screenshots And htlmReport.
This commit is contained in:
@@ -0,0 +1,189 @@
|
||||
|
||||
|
||||
|
||||
<!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">
|
||||
100%
|
||||
</span>
|
||||
<span class="absValue">
|
||||
(6/6)
|
||||
</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.Cards.Building.Effects;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
||||
|
||||
/**
|
||||
* Building effect that grants a discount of 1 food during the Sustenance Event
|
||||
* for each character of the indicated type present in the player's tribe.
|
||||
*/
|
||||
public class Building1 extends BuildingCard {
|
||||
|
||||
/**
|
||||
* Character type involved in the building effect.
|
||||
*/
|
||||
private CharacterType icon ;
|
||||
|
||||
/**
|
||||
* Returns the character type associated with this building effect.
|
||||
*
|
||||
* @return the character type associated with this building effect.
|
||||
*/
|
||||
<b class="fc"> public CharacterType getIcon() {return icon;}</b>
|
||||
|
||||
/**
|
||||
* Creates a building with the specified era, price, prestige value
|
||||
* and character type involved in its effect.
|
||||
*
|
||||
* @param era the game era of the building.
|
||||
* @param price the price in food of the building.
|
||||
* @param prestigeValue the number of Prestige Points gained from this building at the end of the game.
|
||||
* @param icon the character type used by the building effect.
|
||||
*/
|
||||
public Building1(int era, int price,int prestigeValue, CharacterType icon) {
|
||||
<b class="fc"> super(era,price,prestigeValue);</b>
|
||||
<b class="fc"> effectType = EffectType.ON_EVENT;</b>
|
||||
<b class="fc"> effectId = 1;</b>
|
||||
<b class="fc"> this.icon = icon;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a building with the specified image identifier, era, price,
|
||||
* prestige value and character type involved in its effect.
|
||||
*
|
||||
* @param idIMG the image identifier of the building.
|
||||
* @param era the game era of the building.
|
||||
* @param price the price in food of the building.
|
||||
* @param prestigeValue the number of Prestige Points gained from this building at the end of the game.
|
||||
* @param icon the character type used by the building effect.
|
||||
*/
|
||||
public Building1(String idIMG,int era, int price,int prestigeValue, CharacterType icon) {
|
||||
<b class="fc"> super(idIMG,era,price,prestigeValue);</b>
|
||||
<b class="fc"> effectType = EffectType.ON_EVENT;</b>
|
||||
<b class="fc"> effectId = 1;</b>
|
||||
<b class="fc"> this.icon = icon;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new building instance with the same configuration values
|
||||
* as this card.
|
||||
*
|
||||
* @return a new building card with the same base properties and icon.
|
||||
*/
|
||||
@Override
|
||||
public BuildingCard clone() {
|
||||
<b class="fc"> return new Building1(getIdIMG(),getEra(),getPrice(),getPrestigeValue(),getIcon());</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of this building, including the character
|
||||
* type associated with its effect.
|
||||
*
|
||||
* @return a string representation of this building.
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
<b class="fc"> return super.toString() + " (Icon:" + this.icon.toString().substring(0, 3) + ")";</b>
|
||||
}
|
||||
|
||||
// TODO
|
||||
@Override
|
||||
public String toStringPlayer() {
|
||||
<b class="fc"> return super.toStringPlayer() + " (Icon:" + this.icon.toString().substring(0, 3) + ")";</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