Files
2026-06-19 22:57:43 +02:00

174 lines
4.1 KiB
HTML

<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > GameStages</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.GamePackage</a>
</div>
<h1>Coverage Summary for Class: GameStages (it.polimi.ingsw.gc14.Model.GamePackage)</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">GameStages</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
75%
</span>
<span class="absValue">
(3/4)
</span>
</td>
<td class="coverageStat">
<span class="percent">
91.7%
</span>
<span class="absValue">
(11/12)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.GamePackage;
&nbsp;
&nbsp;/**
&nbsp; * Represents the possible stages of a game.
&nbsp; */
<b class="fc">&nbsp;public enum GameStages {</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which the game is waiting for players to join.
&nbsp; */
<b class="fc">&nbsp; WAITING(&quot;Waiting&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which players choose their totems.
&nbsp; */
<b class="fc">&nbsp; TOTEM_CHOICE(&quot;Totem&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which players select their action slots.
&nbsp; */
<b class="fc">&nbsp; SLOT_CHOICE(&quot;Slot&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which the mandatory actions associated with the chosen slots are resolved.
&nbsp; */
<b class="fc">&nbsp; RES_ACTIONS(&quot;Actions&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which an optional card effect can be resolved.
&nbsp; */
<b class="fc">&nbsp; OPT_CARD_E(&quot;Card Effect&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which an event card is being resolved.
&nbsp; */
<b class="fc">&nbsp; RES_EVENT(&quot;Event&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage in which end-of-game scoring and ranking are computed.
&nbsp; */
<b class="fc">&nbsp; ENDING(&quot;Ending&quot;),</b>
&nbsp;
&nbsp; /**
&nbsp; * Stage indicating that the game has ended.
&nbsp; */
<b class="fc">&nbsp; ENDED(&quot;Ended&quot;);</b>
&nbsp;
&nbsp; /** The human-readable name of this stage, used in {@link #toString()}. */
&nbsp; private final String displayName;
&nbsp;
&nbsp; /**
&nbsp; * Constructs a {@code GameStages} value with the given display name.
&nbsp; *
&nbsp; * @param displayName the human-readable label for this stage
&nbsp; */
<b class="fc">&nbsp; GameStages(String displayName) {</b>
<b class="fc">&nbsp; this.displayName = displayName;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Returns the human-readable name of this stage.
&nbsp; *
&nbsp; * @return the display name (e.g. {@code &quot;Slot&quot;} for {@code SLOT_CHOICE})
&nbsp; */
&nbsp; @Override
&nbsp; public String toString() {
<b class="nc">&nbsp; return displayName;</b>
&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>