FIx: Fixed Coverage Screenshots And htmlRepot.
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
|
||||
|
||||
|
||||
<!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"> package it.polimi.ingsw.gc14.Network;
|
||||
|
||||
import it.polimi.ingsw.gc14.ErrorType;
|
||||
|
||||
/**
|
||||
* Defines the operations that a client can request during the game.
|
||||
*/
|
||||
public interface IClient {
|
||||
|
||||
/**
|
||||
* Connects the client to the server using the specified username
|
||||
* and preferred connection type.
|
||||
*
|
||||
* @param username the username chosen by the player.
|
||||
* @param proposedNPlayers the desired number of players proposed by this client.
|
||||
* @return {@code true} if the connection is established successfully,
|
||||
* {@code false} otherwise.
|
||||
*/
|
||||
ErrorType connect(String username, int proposedNPlayers);
|
||||
|
||||
/**
|
||||
* Requests to draw a tribe card from the upper tribe card list.
|
||||
*
|
||||
* @param playerUsername the username of the player performing the action.
|
||||
* @param pos the position of the selected card in the upper tribe card list.
|
||||
*/
|
||||
void drawUpperTribeCard(String playerUsername, int pos);
|
||||
|
||||
/**
|
||||
* Requests to draw a tribe card from the lower tribe card list.
|
||||
*
|
||||
* @param playerUsername the username of the player performing the action.
|
||||
* @param pos the position of the selected card in the lower tribe card list.
|
||||
*/
|
||||
void drawLowerTribeCard(String playerUsername, int pos);
|
||||
|
||||
/**
|
||||
* Requests to draw a building card from the upper building card list.
|
||||
*
|
||||
* @param playerUsername the username of the player performing the action.
|
||||
* @param pos the position of the selected card in the upper building card list.
|
||||
*/
|
||||
void drawUpperBuildingCard(String playerUsername, int pos);
|
||||
|
||||
/**
|
||||
* Requests to draw a building card from the lower building card list.
|
||||
*
|
||||
* @param playerUsername the username of the player performing the action.
|
||||
* @param pos the position of the selected card in the lower building card list.
|
||||
*/
|
||||
void drawLowerBuildingCard(String playerUsername, int pos);
|
||||
|
||||
/**
|
||||
* Requests to skip the current player's optional action.
|
||||
*
|
||||
* @param playerUsername the username of the player skipping the action.
|
||||
*/
|
||||
void skipTurn(String playerUsername);
|
||||
|
||||
/**
|
||||
* Requests to assign the specified player to a slot.
|
||||
*
|
||||
* @param playerUsername the username of the player making the slot choice.
|
||||
* @param pos the position of the selected slot.
|
||||
*/
|
||||
void slotChoice(String playerUsername, int pos);
|
||||
|
||||
/**
|
||||
* Requests to assign the selected totem to the specified player.
|
||||
*
|
||||
* @param playerUsername the username of the player making the totem choice.
|
||||
* @param totem the name of the selected totem.
|
||||
*/
|
||||
void totemChoice(String playerUsername, String totem);
|
||||
|
||||
/** Notifies the server of a voluntary disconnection and closes the connection. */
|
||||
void notifyDisconnection();
|
||||
}
|
||||
</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