Angband development tasks
Collapse
X
-
Comment
-
Code:/** * Play Angband */ void play_game(bool new_game) { /* Load a savefile or birth a character, or both */ start_game(new_game); /* Get commands from the user, then process the game world until the * command queue is empty and a new player command is needed */ while (!player->is_dead && player->upkeep->playing) { cmd_get_hook(CMD_GAME); run_game_loop(); } /* Close game on death or quitting */ close_game(); }
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.Comment
-
Stuff has moved around a lot. The UI now runs the game, as follows:
Code:/** * Play Angband */ void play_game(bool new_game) { /* Load a savefile or birth a character, or both */ start_game(new_game); /* Get commands from the user, then process the game world until the * command queue is empty and a new player command is needed */ while (!player->is_dead && player->upkeep->playing) { cmd_get_hook(CMD_GAME); run_game_loop(); } /* Close game on death or quitting */ close_game(); }
EDIT: Thanks, btw.Comment
Comment