Interface IClientCallback
- All Superinterfaces:
Remote, Serializable
- All Known Implementing Classes:
ClientCallbackImpl
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 TypeMethodDescriptionvoidonAction(NetworkEvent action) Notifies the client about a network action to process.voidonGameInit(MiniModel miniModel) Notifies the client that the game model has been initialized or updated.
-
Method Details
-
onGameInit
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
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.
-