Multiplayer Play
Command-line arguments from startup/XCFrame.java
:
XCFrame [task] [pilot_type] [host:port] [pgs hgs sps bls]
All the parameters are optional. If none are passed in the game loads defaults as follows:
task
= defaultpilot_type
= 1 (hg)host:port
= null (ie. single player mode)- pgs = 2, hgs = 4, sps = 2 (the numbers of each type of AI glider)
The last two parameters are mutually exclusive. Either we connect to a game server or we create a number of AI gliders.
Commands from server/XCGameServer.java
:
QUIT
: break;TEST
: client sends "+OK" andflush()
KILLALL
: sendsdisconnectAllXCClient()
LAUNCH
: not sure... starts the game?WARM_FRONT
: secret code to shut down the server
Any other command is just "mirrored" to the other player's consoles, with your ID preprended (I think).