182 lines
4.5 KiB
HTML
182 lines
4.5 KiB
HTML
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html id="htmlId">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>Coverage Report > EventType</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.Network</a>
|
|
</div>
|
|
|
|
<h1>Coverage Summary for Class: EventType (it.polimi.ingsw.gc14.Network)</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">EventType</td>
|
|
<td class="coverageStat">
|
|
<span class="percent">
|
|
0%
|
|
</span>
|
|
<span class="absValue">
|
|
(0/1)
|
|
</span>
|
|
</td>
|
|
<td class="coverageStat">
|
|
<span class="percent">
|
|
0%
|
|
</span>
|
|
<span class="absValue">
|
|
(0/4)
|
|
</span>
|
|
</td>
|
|
<td class="coverageStat">
|
|
<span class="percent">
|
|
0%
|
|
</span>
|
|
<span class="absValue">
|
|
(0/16)
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<pre>
|
|
<code class="sourceCode" id="sourceCode"> package it.polimi.ingsw.gc14.Network;
|
|
|
|
/**
|
|
* Represents the different types of network events that can be sent between
|
|
* client and server.
|
|
*/
|
|
<b class="nc"> public enum EventType {</b>
|
|
|
|
/**
|
|
* Event used to add a player to the game.
|
|
*/
|
|
<b class="nc"> ADD_PLAYER("Add Player Event"),</b>
|
|
|
|
/**
|
|
* Event used to submit a player's totem choice.
|
|
*/
|
|
<b class="nc"> TOTEM_CHOICE("Totem Choice"),</b>
|
|
|
|
/**
|
|
* Event used to submit a player's slot choice.
|
|
*/
|
|
<b class="nc"> SLOT_CHOICE("Slot Choice"),</b>
|
|
|
|
/**
|
|
* Event used to draw a tribe card from the upper card list.
|
|
*/
|
|
<b class="nc"> DRAW_UPPER_TRIBE("Drawing Upper Tribe"),</b>
|
|
|
|
/**
|
|
* Event used to draw a tribe card from the lower card list.
|
|
*/
|
|
<b class="nc"> DRAW_LOWER_TRIBE("Drawing Lower Tribe"),</b>
|
|
|
|
/**
|
|
* Event used to draw a building card from the upper card list.
|
|
*/
|
|
<b class="nc"> DRAW_UPPER_BUILD("Drawing Upper Build"),</b>
|
|
|
|
/**
|
|
* Event used to draw a building card from the lower card list.
|
|
*/
|
|
<b class="nc"> DRAW_LOWER_BUILD("Drawing Lower Build"),</b>
|
|
|
|
/**
|
|
* Event used to skip the current turn or optional action.
|
|
*/
|
|
<b class="nc"> SKIP_TURN("Skip Turn"),</b>
|
|
|
|
/**
|
|
* Event used to notify that a player has disconnected.
|
|
*/
|
|
<b class="nc"> DISCONNECTED_PLAYER("Disconnected Player"),</b>
|
|
|
|
/**
|
|
* Event used to notify that a player has reconnected.
|
|
*/
|
|
<b class="nc"> RECONNECT_PLAYER("Reconnect Player"),</b>
|
|
|
|
/**
|
|
* Event used to apply the transition to the next round.
|
|
*/
|
|
<b class="nc"> NEXT_ROUND("Next Round"),</b>
|
|
|
|
/**
|
|
* Event used to notify that the game has ended.
|
|
*/
|
|
<b class="nc"> ENDED_GAME("Ended Game");</b>
|
|
|
|
private final String description;
|
|
<b class="nc"> private EventType(String description) {</b>
|
|
<b class="nc"> this.description = description;</b>
|
|
}
|
|
@Override
|
|
public String toString() {
|
|
<b class="nc"> return description;</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>
|