103 lines
2.6 KiB
HTML
103 lines
2.6 KiB
HTML
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html id="htmlId">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>Coverage Report > IClientCallback</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.RMI.Common</a>
|
|
</div>
|
|
|
|
<h1>Coverage Summary for Class: IClientCallback (it.polimi.ingsw.gc14.Network.RMI.Common)</h1>
|
|
|
|
<table class="coverageStats">
|
|
<tr>
|
|
<th class="name">Class</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="name">IClientCallback</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<pre>
|
|
<code class="sourceCode" id="sourceCode"> package it.polimi.ingsw.gc14.Network.RMI.Common;
|
|
|
|
import it.polimi.ingsw.gc14.Model.*;
|
|
import it.polimi.ingsw.gc14.Network.NetworkEvent;
|
|
|
|
import java.io.Serializable;
|
|
import java.rmi.*;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Callback interface used by the server to notify an RMI client about
|
|
* game updates and incoming network actions.
|
|
*
|
|
* <p>Implementations of this interface are remotely accessible and
|
|
* serializable.
|
|
*/
|
|
public interface IClientCallback extends Remote, Serializable {
|
|
|
|
/**
|
|
* Notifies the client that the game model has been initialized or updated.
|
|
*
|
|
* @param miniModel the current mini model of the game.
|
|
* @throws RemoteException if an RMI communication error occurs.
|
|
*/
|
|
void onGameInit(MiniModel miniModel) throws RemoteException;
|
|
|
|
/**
|
|
* Notifies the client about a network action to process.
|
|
*
|
|
* @param action the network event received from the server.
|
|
* @throws RemoteException if an RMI communication error occurs.
|
|
*/
|
|
void onAction(NetworkEvent action) throws RemoteException;
|
|
}
|
|
</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>
|