Title: GameNet_UserInterface
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER

Package | Class | Use | Tree | Deprecated | Index | Help |
PREV CLASS   NEXT CLASS | FRAMES    NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

gameNet_cloneable
Interface GameNet_UserInterface

public interface GameNet_UserInterface




Your GUI MUST implement this interface.

Method Summary
void | receivedMessage(java.lang.Object objectReceived) When the "process" method returns a non-null MyGameOutput, the information will then be sent to the receivedMessage methods of all of the user interfaces.
void | startUserInterface(GamePlayer gamePlayer) When the Networked game has been put together, the user interface is informed with a call to startUserInterface.

Method Detail

receivedMessage


void receivedMessage(java.lang.Object objectReceived)

When the "process" method returns a non-null MyGameOutput, the information will then be sent to the receivedMessage methods of all of the user interfaces.

Parameters:
objectReceived - - information received

startUserInterface


void startUserInterface(GamePlayer gamePlayer)

When the Networked game has been put together, the user interface is informed with a call to startUserInterface. In this call the GamePlayer class is passed in. The GamePlayer address should be saved since it provides the mechanism for sending data to the game.

Parameters:
gamePlayer - - contains the players name, and the glue information needed to connect the user interface to the game.

Package | Class | Use | Tree | Deprecated | Index | Help |
PREV CLASS   NEXT CLASS | FRAMES    NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD