home · contact · privacy
877d2fb2b263d2b28ff73aab121661104bc3e539
[plomrogue] / src / server / run.h
1 /* src/server/run.h
2  *
3  * Process commands and act on them. Stuff that furthers the state of the game.
4  */
5
6 #ifndef RUN_H
7 #define RUN_H
8
9 #include <stdint.h> /* uint8_t */
10
11
12
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.
15  */
16 extern void obey_msg(char * msg, uint8_t do_record);
17
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  * In play mode, processes incomming commands via obey_msg().
21  */
22 extern uint8_t io_loop();
23
24
25
26 #endif