Debian Codegraph @

src/game_interfaces/qgoboardlocalinterface.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2009-2014 by The qGo Project *
3 * *
4 * This file is part of qGo. *
5 * *
6 * qGo is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, see <http://www.gnu.org/licenses/> *
18 * or write to the Free Software Foundation, Inc., *
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20 ***************************************************************************/
21
22 #ifndef QGOBOARDLOCALINTERFACE_H
23 #define QGOBOARDLOCALINTERFACE_H
24
25 #include "defines.h"
26 #include "qgoboard.h"
27
28 class BoardWindow;
29 class Tree;
30 class GameData;
31 class Move;
32 class QGtp;
33 class Sound;
34
35 class qGoBoardLocalInterface : public qGoBoard
36 {
37 Q_OBJECT
38 public:
39 qGoBoardLocalInterface(BoardWindow *boardWindow, Tree * tree, GameData *gameData);
40 ~qGoBoardLocalInterface();
41
42 void checkComputersTurn(bool force = false);
43 void feedPositionThroughGtp();
44
45 virtual void localMoveRequest(StoneColor c, int x, int y);
46 void slot_playComputer(int x, int y);
47 void slot_resignComputer();
48 void slot_passComputer();
49 virtual void slotDonePressed();
50 virtual void slotUndoPressed();
51 void slotToggleInsertStones(bool val);
52 virtual void passRequest();
53
54 private:
55 virtual void sendMoveToInterface(StoneColor c,int x, int y);
56
57 void startGame() {}
58 // void enterScoreMode() {}
59 void leaveScoreMode() {}
60
61 QGtp *gtp;
62 Move *currentEngine;
63 bool insertStoneFlag;
64 };
65
66 #endif // QGOBOARDLOCALINTERFACE_H