Survival Royale 1.0.0
A very simple yet funny card game.
Loading...
Searching...
No Matches
cli.h
Go to the documentation of this file.
1// Copyright (C) 2025 Giulio Salvi, Jacopo Paradisi
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
20
21#include "utility.h"
22#include "game_configuration.h"
23
24#ifndef _CLI_H_
26 #define _CLI_H_
27
30 void getHelp(const char* scope);
35 int handleCLIArguments(char** argv, const int argc);
40 GameConfiguration getConfigurationFromArguments(char** argv, const int argc);
41#endif
GameConfiguration getConfigurationFromArguments(char **argv, const int argc)
Generates a game configuration from the given options. If some options are not specified,...
Definition cli.c:135
int handleCLIArguments(char **argv, const int argc)
It validates and intreprets the CLI options.
Definition cli.c:72
void getHelp(const char *scope)
Prints the generic help message or a detailed help message describing a particular option.
Definition cli.c:23
Definition of the game configuration structure and definition of related accessory functions.
The game configuration structure.
Definition of utility functions.