1 //--------------------------------------------------------------------------
2 // User.hh - Class header for the User class
7 // $Date: 1998/09/10 19:58:41 $
13 // Revision 1.8 1998/09/10 19:58:41 mlong
14 // lots of little bug fixes and a few new features.
16 // Revision 1.7 1998/02/12 18:44:25 mlong
17 // *** empty log message ***
19 // Revision 1.6 1997/04/13 03:21:32 chess
20 // AddAbuse and SetStatistic added
22 // Revision 1.5 1997/04/07 22:22:12 chess
23 // *** empty log message ***
25 // Revision 1.4 1997/03/27 13:45:28 chess
26 // added functions to return user's statistics
28 // Revision 1.3 1997/03/21 15:29:53 moses
29 // *** empty log message ***
31 // Revision 1.2 1996/10/01 20:14:43 moses
34 // Revision 1.1 1996/09/30 20:52:48 moses
38 //--------------------------------------------------------------------------
47 #include <sys/param.h>
48 #include <sys/types.h>
69 class User : public Link {
78 void LoadPlayer(char *);
79 short LoadPlayer(char *, char *);
81 void SavePlayer(char *);
83 float GetRating(void);
84 int GetManagerLevel(void);
91 long GetSeconds(void);
93 float GetPlacePoints(void);
94 long GetPlayedTourneys(void);
95 long GetManagedTourneys(void);
100 void ResetAbuse(void);
102 void AddManagedTourney();
103 void ChangeManagerLevel(int);
105 void AddPlayedTourney();
107 int SetStatistic(int, int);
109 void AddStat(double);
111 void CalculateRating(float, float);
114 void CalculateRating(void);
121 void AddSecond(void);
124 void CreateDirectory(char *, char *);
150 long managedTourneys;