3 * Server, world and game state initialization.
9 #include <stdint.h> /* uint32_t */
13 /* Parses command line arguments -v and -s into server configuration. */
14 extern void obey_argv(int argc, char * argv[]);
16 /* Dissolves old game world if it exists, and generates a new one from "seed".
18 * Map object (action) definitions read in from server config directory are not
19 * affected. world.last_update_turn is set to 0 and world.turn to 1, so that
20 * io_round()'s criteria for updating the output file are triggered even when
21 * this function is called during a round 1. How many map objects of what type
22 * id are generated on the map is currently hard-coded.
24 extern void remake_world(uint32_t seed);
26 /* Create a game state from which to play or replay, then enter io_loop().
28 * If no record file exists at world.path_record, generate new world (by a
29 * "seed" command calling remake_world()) in play mode, or error-exit in replay
30 * mode. If a record file exists, in play mode auto-replay it up to the last
31 * game state before turning over to the player; in replay mode, auto-replay it
32 * up to the turn named in world.replay and then turn over to manual replay.
34 extern void run_game();