Files
Progetto-ingegneria-del-sof…/deliverables/Coverage/htmReport/ns-c/sources/source-6.html
T
2026-06-19 22:57:43 +02:00

147 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 > IClient</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: IClient (it.polimi.ingsw.gc14.Network)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
</tr>
<tr>
<td class="name">IClient</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Network;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.ErrorType;
&nbsp;
&nbsp;/**
&nbsp; * Defines the operations that a client can request during the game.
&nbsp; */
&nbsp;public interface IClient {
&nbsp;
&nbsp; /**
&nbsp; * Connects the client to the server using the specified username
&nbsp; * and preferred connection type.
&nbsp; *
&nbsp; * @param username the username chosen by the player.
&nbsp; * @param proposedNPlayers the desired number of players proposed by this client.
&nbsp; * @return {@code true} if the connection is established successfully,
&nbsp; * {@code false} otherwise.
&nbsp; */
&nbsp; ErrorType connect(String username, int proposedNPlayers);
&nbsp;
&nbsp; /**
&nbsp; * Requests to draw a tribe card from the upper tribe card list.
&nbsp; *
&nbsp; * @param playerUsername the username of the player performing the action.
&nbsp; * @param pos the position of the selected card in the upper tribe card list.
&nbsp; */
&nbsp; void drawUpperTribeCard(String playerUsername, int pos);
&nbsp;
&nbsp; /**
&nbsp; * Requests to draw a tribe card from the lower tribe card list.
&nbsp; *
&nbsp; * @param playerUsername the username of the player performing the action.
&nbsp; * @param pos the position of the selected card in the lower tribe card list.
&nbsp; */
&nbsp; void drawLowerTribeCard(String playerUsername, int pos);
&nbsp;
&nbsp; /**
&nbsp; * Requests to draw a building card from the upper building card list.
&nbsp; *
&nbsp; * @param playerUsername the username of the player performing the action.
&nbsp; * @param pos the position of the selected card in the upper building card list.
&nbsp; */
&nbsp; void drawUpperBuildingCard(String playerUsername, int pos);
&nbsp;
&nbsp; /**
&nbsp; * Requests to draw a building card from the lower building card list.
&nbsp; *
&nbsp; * @param playerUsername the username of the player performing the action.
&nbsp; * @param pos the position of the selected card in the lower building card list.
&nbsp; */
&nbsp; void drawLowerBuildingCard(String playerUsername, int pos);
&nbsp;
&nbsp; /**
&nbsp; * Requests to skip the current player&#39;s optional action.
&nbsp; *
&nbsp; * @param playerUsername the username of the player skipping the action.
&nbsp; */
&nbsp; void skipTurn(String playerUsername);
&nbsp;
&nbsp; /**
&nbsp; * Requests to assign the specified player to a slot.
&nbsp; *
&nbsp; * @param playerUsername the username of the player making the slot choice.
&nbsp; * @param pos the position of the selected slot.
&nbsp; */
&nbsp; void slotChoice(String playerUsername, int pos);
&nbsp;
&nbsp; /**
&nbsp; * Requests to assign the selected totem to the specified player.
&nbsp; *
&nbsp; * @param playerUsername the username of the player making the totem choice.
&nbsp; * @param totem the name of the selected totem.
&nbsp; */
&nbsp; void totemChoice(String playerUsername, String totem);
&nbsp;
&nbsp; /** Notifies the server of a voluntary disconnection and closes the connection. */
&nbsp; void notifyDisconnection();
&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>