![]() |
Survival Royale 1.0.0
A very simple yet funny card game.
|
Definition of functions which retrieves the game configuration from the possible sources. More...
Go to the source code of this file.
Macros | |
#define | _CONFIG_H_ |
Include guard. |
Functions | |
GameConfiguration | getGameConfiguration (const int code, const GameConfiguration cliGameConfiguration) |
Gets the game configuration based on the action code. If action code is ACTION_HELP, the program exits successfully. If the program is asked to save the game configuration to a file, it overwrites by default the existing game configuration file. | |
GameConfiguration | askConfigurationOptionsViaTerminal () |
Asks to the user via terminal the game configuration. |
Definition of functions which retrieves the game configuration from the possible sources.
Definition in file config.h.
GameConfiguration askConfigurationOptionsViaTerminal | ( | ) |
GameConfiguration getGameConfiguration | ( | const int | code, |
const GameConfiguration | cliGameConfiguration ) |
Gets the game configuration based on the action code. If action code is ACTION_HELP, the program exits successfully. If the program is asked to save the game configuration to a file, it overwrites by default the existing game configuration file.
code | The action code. |
cliGameConfiguration | The possible CLI game configuration. |