added some data types to ms_main_driver.c
This commit is contained in:
parent
9d8811c3b7
commit
99c280f5aa
1 changed files with 5 additions and 5 deletions
|
|
@ -19,13 +19,13 @@
|
|||
/**
|
||||
* Prompts the user for the mode of the game to start and returns it.
|
||||
*/
|
||||
<type> ui_prompt_for_mode(<params>);
|
||||
GameMode ui_prompt_for_mode();
|
||||
|
||||
/**
|
||||
* ui_branch handles the user interface mode of the application.
|
||||
* @see main
|
||||
*/
|
||||
<type> ui_branch(<params>);
|
||||
void ui_branch(GameMode mode);
|
||||
|
||||
/**
|
||||
* Main function evaluates the number of command line arguments.
|
||||
|
|
@ -38,19 +38,19 @@
|
|||
*/
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
<type> 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;
|
||||
}
|
||||
|
||||
<type> ui_prompt_for_mode(<params>) {
|
||||
GameMode ui_prompt_for_mode() {
|
||||
/* can be extended to support interactive mode input */
|
||||
return BEGINNER;
|
||||
}
|
||||
|
||||
<type> ui_branch(<params>)
|
||||
void ui_branch(GameMode mode)
|
||||
{
|
||||
/* start a new game in the given mode */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue