![]() |
Survival Royale 1.0.0
A very simple yet funny card game.
|
Implementation of functions which retrieves the game configuration from the possible sources. More...
#include "config.h"
Go to the source code of this file.
Functions | |
GameConfiguration | getDefaultConfiguration () |
Retrieves the default game configuration. | |
bool | isDefaultGameConfiguration (const GameConfiguration config) |
Determines if a given game configuration is the default one. | |
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. |
Implementation of functions which retrieves the game configuration from the possible sources.
Definition in file config.c.
GameConfiguration getDefaultConfiguration | ( | ) |
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. |
bool isDefaultGameConfiguration | ( | const GameConfiguration | config | ) |