Interface IClientCallback

All Superinterfaces:
Remote, Serializable
All Known Implementing Classes:
ClientCallbackImpl

public interface IClientCallback extends Remote, Serializable
Callback interface used by the server to notify an RMI client about game updates and incoming network actions.

Implementations of this interface are remotely accessible and serializable.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies the client about a network action to process.
    void
    onGameInit(MiniModel miniModel)
    Notifies the client that the game model has been initialized or updated.
  • Method Details

    • onGameInit

      void onGameInit(MiniModel miniModel) throws RemoteException
      Notifies the client that the game model has been initialized or updated.
      Parameters:
      miniModel - the current mini model of the game.
      Throws:
      RemoteException - if an RMI communication error occurs.
    • onAction

      void onAction(NetworkEvent action) throws RemoteException
      Notifies the client about a network action to process.
      Parameters:
      action - the network event received from the server.
      Throws:
      RemoteException - if an RMI communication error occurs.