netwar.network
Interface NetworkClientInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
NetworkClient

public interface NetworkClientInterface
extends java.rmi.Remote

The Client network adapter that sends and recieves commands to and from the Netwar Server.

Author:
Group N2-Project Netwar, Jason Komutrattananon

Method Summary
 void clientRecieveSettings(GameSettings gameSettings)
          Remote method used to recieve settings and set them locally RMI method: Server
 void setCompleteSetOfCommands(Command[] completeSetOfCommands)
          The Netwar server will send the complete set of commands once it recieves them from every single player using this method RMI type: Server
 void startGame()
          Signals the local machine that the server wants to start the game.
 

Method Detail

setCompleteSetOfCommands

public void setCompleteSetOfCommands(Command[] completeSetOfCommands)
                              throws java.rmi.RemoteException
The Netwar server will send the complete set of commands once it recieves them from every single player using this method RMI type: Server
Parameters:
completeSetOfCommands - the server sends this Command array which should be the complete set of commands for 1 cycle

startGame

public void startGame()
               throws java.rmi.RemoteException
Signals the local machine that the server wants to start the game. RMI type: Server

clientRecieveSettings

public void clientRecieveSettings(GameSettings gameSettings)
                           throws java.rmi.RemoteException
Remote method used to recieve settings and set them locally RMI method: Server
Parameters:
gameSettings - is the game settings that need to be propogated to all the players