game.net
Interface INetSimulator

All Known Implementing Classes:
SCORESimulator

public interface INetSimulator

Interface to protocol layer as seen by Simulator model. Each model is required to call the appropriate method when each of the events occurs.


Method Summary
 void gameOver(Side result)
          Inform teams that the game is over and who won.
 void gameReset()
          Inform teams that a game reset has occured.
 void goalScored(int westScore, int eastScore)
          Inform teams that a goal has been scored.
 

Method Detail

gameReset

void gameReset()
Inform teams that a game reset has occured.


goalScored

void goalScored(int westScore,
                int eastScore)
Inform teams that a goal has been scored.

Parameters:
westScore - current score for team on WEST
eastScore - current score for team on EAST

gameOver

void gameOver(Side result)
Inform teams that the game is over and who won.

Parameters:
result - the wining side. null indicates draw.