Angband
ui-game.h
Go to the documentation of this file.
1 
20 #ifndef INCLUDED_UI_GAME_H
21 #define INCLUDED_UI_GAME_H
22 
23 #include "cmd-core.h"
24 #include "game-event.h"
25 
26 extern bool arg_wizard;
27 extern char savefile[1024];
28 
29 void cmd_init(void);
30 unsigned char cmd_lookup_key(cmd_code lookup_cmd, int mode);
31 unsigned char cmd_lookup_key_unktrl(cmd_code lookup_cmd, int mode);
32 cmd_code cmd_lookup(unsigned char key, int mode);
33 void textui_process_command(void);
36  void *user);
37 void play_game(bool new_game);
38 void savefile_set_name(const char *fname, bool make_safe, bool strip_suffix);
39 void save_game(void);
40 void close_game(void);
41 
42 #endif /* INCLUDED_UI_GAME_H */
bool arg_wizard
Definition: ui-game.c:57
static bool new_game
Definition: main.c:277
unsigned char cmd_lookup_key_unktrl(cmd_code lookup_cmd, int mode)
Definition: ui-game.c:251
char savefile[1024]
Buffer to hold the current savefile name.
Definition: ui-game.c:62
void close_game(void)
Close up the current game (player may or may not be dead)
Definition: ui-game.c:543
void cmd_init(void)
Initialise the command list.
Definition: ui-game.c:212
static term_data data[MAX_TERM_DATA]
Definition: main-nds.c:156
void textui_process_command(void)
Parse and execute the current command Give "Warning" on illegal commands.
Definition: ui-game.c:276
void savefile_set_name(const char *fname, bool make_safe, bool strip_suffix)
Set the savefile name.
Definition: ui-game.c:445
int errr
ANSI C headers.
Definition: h-basic.h:164
game_event_type
The various events we can send signals about.
Definition: game-event.h:27
unsigned char cmd_lookup_key(cmd_code lookup_cmd, int mode)
Definition: ui-game.c:235
void play_game(bool new_game)
Play Angband.
Definition: ui-game.c:425
void check_for_player_interrupt(game_event_type type, game_event_data *data, void *user)
Allow for user abort during repeated commands, running and resting.
Definition: ui-game.c:337
int type
Definition: mon-msg.c:80
Handles the queueing of game commands.
cmd_context
Definition: cmd-core.h:109
cmd_code
All valid game commands.
Definition: cmd-core.h:29
Definition: game-event.h:98
Allows the registering of handlers to be told about game events.
cmd_code cmd_lookup(unsigned char key, int mode)
Definition: ui-game.c:261
errr textui_get_cmd(cmd_context context)
Definition: ui-game.c:322
void save_game(void)
Save the game.
Definition: ui-game.c:475