|
javac Server.java Display.java && java Display
You will notice that all teams are required to notify the
display whenever their executive receives an answer to the
RoomQuery question from the Blue team's grammar. To
make this easier, we've written the code for you. It's included in
the sources above, in the file UpdateDisplay.java .
Simply compile against it and use it like this:
UpdateDisplay ud = new UpdateDisplay(server);
ud.update("treasure:blue:4");
Adjust your string appropriately, of course.
A summary of our information requirements (from the spec):
requirement | syntax |
Clock | TICK:<round>:<period>:<clock>:<pause> |
Player status | STATUS:<player-name>:<status-string> |
Alarms triggered | ALARM:<area-name>:<player-name> |
Dialog messages | DIALOG:<team-name>:<short-message> |
Treasure count | TREASURE:<team-name>:<count> |
|