|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgame.net.SCORESimulator
public class SCORESimulator
Run simulator side of SCORE protocol.
| Constructor Summary | |
|---|---|
SCORESimulator(ISimulatorNet sim)
|
|
| 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. |
boolean |
isAlive()
|
void |
run()
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCORESimulator(ISimulatorNet sim)
| Method Detail |
|---|
public void gameOver(Side result)
INetSimulator
gameOver in interface INetSimulatorresult - the wining side. null indicates draw.public void gameReset()
INetSimulator
gameReset in interface INetSimulator
public void goalScored(int westScore,
int eastScore)
INetSimulator
goalScored in interface INetSimulatorwestScore - current score for team on WESTeastScore - current score for team on EASTpublic void run()
run in interface java.lang.Runnablepublic void shutdown()
public boolean isAlive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||