-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.h
24 lines (18 loc) · 836 Bytes
/
interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "copyright.h"
#include "db.h"
/* these symbols must be defined by the interface */
extern int notify(dbref player, const char *msg);
extern int shutdown_flag; /* if non-zero, interface should shut down */
extern void emergency_shutdown(void);
/* the following symbols are provided by game.c */
/* max length of command argument to process_command */
#define MAX_COMMAND_LEN 512
#define BUFFER_LEN ((MAX_COMMAND_LEN)*8)
extern void process_command(dbref player, char *command);
extern dbref create_player(const char *name, const char *password);
extern dbref connect_player(const char *name, const char *password);
extern void do_look_around(dbref player);
extern int init_game(const char *infile, const char *outfile);
extern void dump_database(void);
extern void panic(const char *);
extern void boot_off(dbref player);