Debian Codegraph @

src/echeckers.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 ECHECKERS_H
24 #define ECHECKERS_H
25
26 #include "checkers.h"
27 #include "pdn.h"
28
29
30 class ECheckers:public Checkers
31 {
32 public:
33 virtual bool go1(int,int);
34
35
36 virtual int type() const { return ENGLISH; }
37
38 virtual bool checkCapture1() const;
39 virtual bool checkCapture2() const;
40 virtual QString getFieldNotation(int, bool) const;
41
42 protected:
43 virtual Captures* getPossibleCapture(int) const;
44
45 private:
46 void kingMove2(int,int &);
47
48 bool manCapture1(int,int,bool &);
49 bool kingCapture1(int,int,bool &);
50
51 bool manCapture2(int,int &);
52 bool kingCapture2(int,int,int &);
53
54 };
55
56 #endif