|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void gameReset()
void goalScored(int westScore, int eastScore)
westScore
- current score for team on WESTeastScore
- current score for team on EASTvoid gameOver(Side result)
result
- the wining side. null indicates draw.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |