Skip to content
Snippets Groups Projects
Commit 1287881b authored by ColinDrieu's avatar ColinDrieu
Browse files

Ajout du fichier joueurList.h

Le fichier déclare la signature des fonctions qui gèrent les listes de joueurs.
parent 3ee870c9
No related branches found
No related tags found
No related merge requests found
/*!
* \file joueurList.h
* \brief Fichier contenant les signatures de la liste de Joueur.
*/
#ifndef JOUEUR_LIST_H
#define JOUEUR_LIST_H
#include "structures.h"
// Fonctions concernant la structure NodeJoueur
NodeJoueur * initNodeJoueur(Joueur * j, NodeJoueur * n);
void deleteNodeJoueur(NodeJoueur * j);
// Fonctions concernant la structure ListJoueur
void initJoueurList(ListJoueur * l);
void deleteJoueurList(ListJoueur * l);
void printJoueurList(ListJoueur * l);
int emptyJoueurList(ListJoueur * l);
int outOfJoueurList(ListJoueur * l);
void setOnFirstJoueur(ListJoueur * l);
void nextJoueur(ListJoueur * l);
NodeJoueur * getCurrentJoueur(ListJoueur * l);
int addNodeJoueurNext(ListJoueur * l, Joueur * j);
int deleteCurrentNodeJoueur(ListJoueur * l);
void setOnJoueur(ListJoueur * l, Joueur * j);
int deleteNodeJoueur(ListJoueur * l, Joueur * j);
#endif // JOUEUR_LIST_H
......@@ -178,6 +178,4 @@ typedef struct Effet_competence{
int nbTours;
}Partie;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment