Coverage Summary for Class: IClientCallback (it.polimi.ingsw.gc14.Network.RMI.Common)

Class
IClientCallback


 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.*;
 
 /**
  * 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;
 }