Survival Royale 1.0.0
A very simple yet funny card game.
Loading...
Searching...
No Matches
logs.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 "main.h"
22#include "includes.h"
23
24#ifndef _LOGS_H_
26 #define _LOGS_H_
27
31
36 void printGameConfiguration(GameConfiguration gameConfiguration, LogsConfiguration logsConfiguration, bool newLine);
40 void printPlayers(Game game, bool newLine);
45 void printPlayer(Player player, LogsConfiguration logsConfiguration, bool newLine);
50 void printCard(Card card, LogsConfiguration logsConfiguration, bool newLine);
55 void printDeck(Card* deck, LogsConfiguration logsConfiguration, bool newLine);
61 void printPageData(PageData pages[], LogsConfiguration logsConfiguration, int totalPages, bool newLine);
62#endif
Preprocessor file used for including library for modules.
void printPlayer(Player player, LogsConfiguration logsConfiguration, bool newLine)
Prints user-friendly player's info.
Definition logs.c:81
void printPlayers(Game game, bool newLine)
Prints user-friendly the players' infos.
Definition logs.c:76
void printDeck(Card *deck, LogsConfiguration logsConfiguration, bool newLine)
Prints user-friendly the cards deck.
Definition logs.c:172
void printPageData(PageData pages[], LogsConfiguration logsConfiguration, int totalPages, bool newLine)
Prints user-friendly the pages' infos.
Definition logs.c:177
void printGameConfiguration(GameConfiguration gameConfiguration, LogsConfiguration logsConfiguration, bool newLine)
Prints user-friendly game configuration settings.
Definition logs.c:53
void printCard(Card card, LogsConfiguration logsConfiguration, bool newLine)
Prints user-friendly the card rank and suit.
Definition logs.c:112
LogsConfiguration prepareLogs()
Generates the logger configuration for the current session. Tries to generate the log file.
Definition logs.c:26
Declaration of game-related constants, definition of game-related structures and functions.
Defines a structure for the cards.
Definition main.h:58
The game configuration structure.
Defines a structure for the game.
Definition main.h:80
The configuration for the logger.
Struct to represent the layout and data of a page containing player information.
Definition tui.h:45
Defines a structure for the player's info.
Definition main.h:66