1 //--------------------------------------------------------------------------
2 // TourneyPlayers.hh - Class header for the TourneyPlayers class
4 // Matthew E. Moses & Michael A. Long
7 // $Date: 1998/09/10 19:58:41 $
12 // $Log: TourneyPlayers.hh,v $
13 // Revision 1.6 1998/09/10 19:58:41 mlong
14 // lots of little bug fixes and a few new features.
16 // Revision 1.5 1998/04/29 15:24:07 mlong
17 // prepairing for the move to daimi
18 // new sorting routine.
20 // Revision 1.4 1998/02/12 18:44:25 mlong
21 // *** empty log message ***
23 // Revision 1.3 1997/10/28 21:03:48 mlong
24 // *** empty log message ***
26 // Revision 1.2 1997/10/23 19:56:12 chess
27 // *** empty log message ***
29 // Revision 1.1 1997/05/14 16:59:13 chess
33 //--------------------------------------------------------------------------
35 #ifndef _TOURNEYPLAYERS_
36 #define _TOURNEYPLAYERS_
42 #include <sys/param.h>
43 #include <sys/types.h>
59 #include "linklist.hh"
63 class TourneyPlayers : public Link {
65 TourneyPlayers(char *, int, float);
73 void ClearTotalWhites();
74 void ClearTotalBlacks();
76 int GetConsecutiveWhites();
77 int GetConsecutiveBlacks();
85 int AlreadyPlayed(char *);
86 void CalculateScore();
88 int RemovePotentialOppList();
89 Player *GetOpponentPlayer(char *);
90 void RemoveFromOppList(char *);
91 void RemoveLastOpponent();
94 void ChangeColorDue(int);
96 void CalculatePerform();
110 char oppName[NAMELEN];
112 LinkList<Player> opponentList;
113 LinkList<Player> potentialOpponentList;
119 int consecutiveWhites;
120 int consecutiveBlacks;