3 * Process commands and act on them. Stuff that furthers the state of the game.
9 #include <stdint.h> /* uint8_t */
13 /* Try parsing "msg" into a server or player command to run. Player commands are
14 * are recorded into the record file at world.path_record if "do_record" is set.
16 extern void obey_msg(char * msg, uint8_t do_record);
18 /* Loop for receiving commands via io_round() and acting on them. Exits with 1
19 * on "QUIT" command. In replay mode, exits with 0 on each non-"QUIT" command.
20 * Writes a "PONG" line to server output file on "PING" command. In play mode,
21 * processes further incomming commands via obey_msg(). Compares the first line
22 * of the file at world.path_out with world.server_test to ensure that the
23 * current server process has not been superseded by a new one.
25 extern uint8_t io_loop();