Make mamer compilable
[capablanca.git] / lasker-2.2.3 / bots / mamer / Game.cc
1 //--------------------------------------------------------------------------
2 // Game.cc - Source file for the Game class
3 //
4 // Matthew E. Moses && Michael A. Long
5 //
6 // $Revision: 1.3 $
7 // $Date: 1998/09/10 19:57:17 $
8 //
9 // $Author: mlong $
10 // $Locker:  $
11 //
12 // $Log: Game.cc,v $
13 // Revision 1.3  1998/09/10 19:57:17  mlong
14 // lots of little bug fixes and a few new features
15 //
16 // Revision 1.2  1998/04/29 15:23:19  mlong
17 // prepairing for the move to daimi
18 // new sorting routine.
19 //
20 // Revision 1.1  1997/07/18 15:42:13  chess
21 // Initial revision
22 //
23 //
24 //--------------------------------------------------------------------------
25
26 // static char RCSid[] = "$Id: Game.cc,v 1.3 1998/09/10 19:57:17 mlong Exp $";
27
28 #include "Game.hh"
29
30 //- Constructor -----------------------------------------------------------
31 Game::Game(char *wn, char *bn, int t, int i, int r, char v) {
32   strcpy(whiteName, wn);
33   strcpy(blackName, bn);
34   time = t;
35   inc = i;
36   rated = r;
37   variation = v;
38
39   gameNumber = -1;
40 }
41
42 //- DeConstructor ---------------------------------------------------------
43 Game::~Game() {
44 }
45
46 //- IsGame -----------------------------------------------------------------
47 int Game::IsGame(char *whiteUser, char *blackUser, int t, int i, int r, char v) {
48     if(
49        (0 == strcasecmp(whiteUser, whiteName)) && 
50        (0 == strcasecmp(blackUser, blackName)) &&
51        (time == t) &&
52        (inc == i) &&
53        (rated == r) &&
54        (variation == v))
55         return(1);
56     else
57         return(0);
58 } //- End of IsGame