Debian Codegraph @

src/rcheckers.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2002-2003 Andi Peredri *
3 * [email protected] *
4 * Copyright (C) 2004-2005 Artur Wiebe *
5 * [email protected] *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21 ***************************************************************************/
22
23 #ifndef RCHECKERS_H
24 #define RCHECKERS_H
25
26 #include "checkers.h"
27 #include "pdn.h"
28
29
30 class RCheckers:public Checkers
31 {
32
33 public:
34 virtual bool go1(int,int);
35
36
37 virtual int type() const { return RUSSIAN; }
38
39 virtual bool checkCapture1() const;
40 virtual bool checkCapture2() const;
41 virtual QString getFieldNotation(int, bool) const;
42
43 protected:
44 virtual Captures* getPossibleCapture(int) const;
45
46 private:
47
48 void kingMove2(int,int &);
49
50 bool manCapture1(int,int,bool &);
51 bool kingCapture1(int,int,bool &);
52
53 bool manCapture2(int,int &);
54 bool kingCapture2(int,int,int &);
55
56 };
57
58 #endif
59
60