00001
00002
00009 #include <cstdlib>
00010 #include <fstream>
00011 #include <iostream>
00012 #include "liste.h"
00013 using namespace std;
00014
00015 #ifndef TT_GIOCATORE
00016 #define TT_GIOCATORE
00017
00022 #define LIBERO 0
00023
00027 #define ELIMINATO 1
00028
00032 #define GIOCATO 2
00033
00037 #define HAVINTO 3
00038
00041 #define HAPERSO 4
00042
00046 #define NONGIOCA 5
00047
00051 struct Giocatore {
00053 int id;
00055 char* nome;
00056 };
00057
00067 Giocatore* giocDettagliGiocatore(const char* nomeFile, int id);
00068
00087 int giocStatoGiocatore(const char* nomeFile, int id);
00088
00099 Lista* giocGiocatoriLiberi(const char* nomeFileGiocatori,
00100 const char* nomeFilePartite);
00101
00110 char* giocNomeGiocatore(const char* nomeFile, int idGiocatore);
00111
00119 void giocNuovoGiocatore(const char* nomeFile, char* nomeGiocatore);
00120
00134 int giocHaGiocato(const char* nomeFileGiocatori, const char* nomeFilePartite,
00135 int idGiocatore, int idPartita);
00136
00137 #endif