From 99c280f5aa60272f36ef444eab9fb29f1b7412a0 Mon Sep 17 00:00:00 2001 From: MarcUs7i Date: Tue, 28 Jan 2025 16:57:19 +0100 Subject: [PATCH] added some data types to ms_main_driver.c --- ms_main_driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ms_main_driver.c b/ms_main_driver.c index 70cbf83..04570da 100644 --- a/ms_main_driver.c +++ b/ms_main_driver.c @@ -19,13 +19,13 @@ /** * Prompts the user for the mode of the game to start and returns it. */ - ui_prompt_for_mode(); +GameMode ui_prompt_for_mode(); /** * ui_branch handles the user interface mode of the application. * @see main */ - ui_branch(); +void ui_branch(GameMode mode); /** * Main function evaluates the number of command line arguments. @@ -38,19 +38,19 @@ */ int main(int argc, char *argv[]) { - mode = BEGINNER; + GameMode mode = BEGINNER; /* can be surrounded with a loop to restart the game in a different mode */ mode = ui_prompt_for_mode(); ui_branch(mode); return 0; } - ui_prompt_for_mode() { +GameMode ui_prompt_for_mode() { /* can be extended to support interactive mode input */ return BEGINNER; } - ui_branch() +void ui_branch(GameMode mode) { /* start a new game in the given mode */