Debian Codegraph @

src/game_tree/tree.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2009 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
23 #ifndef TREE_H
24 #define TREE_Hcxx . . $ `src/game_tree/tree.h:24:9`!
25
26 #include "defines.h"cxx . . $ `<file>/src/defines.h`/
27
28 #include <QtCore>
29
30 class Movecxx . . $ Move#;
31 class Groupcxx . . $ Group#;
32 class Matrixcxx . . $ Matrix#;
33 class GameResultcxx . . $ GameResult#;
34 class GameDatacxx . . $ GameData#;
35
36 class Treecxx . . $ Tree# : public QObjectcxx . . $ QObject#
37 {
38 Q_OBJECTcxx . . $ Tree#QPrivateSignal#
39 public:
40 Treecxx . . $ Tree#Tree(43c79ee2f1b9aefe).(int board_size, float komi);
41 ~cxx . . $ Tree#`~Tree`(ced63f7c635d850d).Treecxx . . $ Tree#();
42 void initcxx . . $ Tree#init(49f6e7a06ebc5aa8).();
43 Movecxx . . $ Move#* getCurrentcxx . . $ Tree#getCurrent(8db4894deadf6b2c).() const { return currentcxx . . $ Tree#current.; }
44 void setCurrentcxx . . $ Tree#setCurrent(490cd2a4f5caa810).(Movecxx . . $ Move# *m);
45 Movecxx . . $ Move#* getRootcxx . . $ Tree#getRoot(8db4894deadf6b2c).() const { return rootcxx . . $ Tree#root.; }
46 Movecxx . . $ Move# * findMoveInMainBranchcxx . . $ Tree#findMoveInMainBranch(c450a16e3b9b3bc9).(int x, int y) { return findMovecxx . . $ Tree#findMove(5d88c6f2f7d0249f).(rootcxx . . $ Tree#root., x, y, false); }
47 Movecxx . . $ Move# * findMoveInCurrentBranchcxx . . $ Tree#findMoveInCurrentBranch(c450a16e3b9b3bc9).(int x, int y) { return findMovecxx . . $ Tree#findMove(5d88c6f2f7d0249f).(rootcxx . . $ Tree#root., x, y, true); }
48 Movecxx . . $ Move# * findLastMoveInMainBranchcxx . . $ Tree#findLastMoveInMainBranch(81447a345d48a217).();
49 Movecxx . . $ Move# * findLastMoveInCurrentBranchcxx . . $ Tree#findLastMoveInCurrentBranch(81447a345d48a217).();
50 Movecxx . . $ Move# * findNodecxx . . $ Tree#findNode(602c32861683a004).(Movecxx . . $ Move# *m, int node);
51 /*
52 * Former Boardhandler functions called by SGF parser
53 */
54
55 void addEmptyMovecxx . . $ Tree#addEmptyMove(49f6e7a06ebc5aa8).();
56 void doPasscxx . . $ Tree#doPass(b0b38cda41d4ede4).(bool sgf, bool fastLoad = false);
57
58 void deleteNodecxx . . $ Tree#deleteNode(49f6e7a06ebc5aa8).();
59
60 /*
61 * Former Stonehandler functions called by addStoneSGF
62 * Those functions are used when adding a stone, and check all Go issues : libertes, death, ...
63 */
64 void setLoadingSGFcxx . . $ Tree#setLoadingSGF(b45ddcbc8423892c).(bool b) { loadingSGFcxx . . $ Tree#loadingSGF. = b; }
65
66 void findMoveByPoscxx . . $ Tree#findMoveByPos(3e454b8ccf442868).(int x,int y);
67
68 // Do these functiones belong here? FIXME
69 void countScorecxx . . $ Tree#countScore(49f6e7a06ebc5aa8).();
70 void countMarkedcxx . . $ Tree#countMarked(490cd2a4f5caa810).(Movecxx . . $ Move# * mv);
71 class GameResultcxx . . $ GameResult# retrieveScorecxx . . $ Tree#retrieveScore(ba5abcee0082dfc2).(void);
72 void exitScorecxx . . $ Tree#exitScore(49f6e7a06ebc5aa8).();
73
74 // Import SGF (from file or string)
75 // FIXME: read handicap from SGF
76 bool importSGFFilecxx . . $ Tree#importSGFFile(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# filename);
77 bool importSGFStringcxx . . $ Tree#importSGFString(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# SGF);
78 QStringcxx . . $ QString# exportSGFStringcxx . . $ Tree#exportSGFString(9f7deeccc2bc8c97).(GameDatacxx . . $ GameData# * gameData);
79
80 void slotNavBackwardcxx . . $ Tree#slotNavBackward(49f6e7a06ebc5aa8).();
81 void slotNavForwardcxx . . $ Tree#slotNavForward(49f6e7a06ebc5aa8).();
82 void slotNavFirstcxx . . $ Tree#slotNavFirst(49f6e7a06ebc5aa8).();
83 void slotNavLastcxx . . $ Tree#slotNavLast(49f6e7a06ebc5aa8).();
84 void slotNavPrevCommentcxx . . $ Tree#slotNavPrevComment(49f6e7a06ebc5aa8).();
85 void slotNavNextCommentcxx . . $ Tree#slotNavNextComment(49f6e7a06ebc5aa8).();
86 void slotNavPrevVarcxx . . $ Tree#slotNavPrevVar(49f6e7a06ebc5aa8).();
87 void slotNavNextVarcxx . . $ Tree#slotNavNextVar(49f6e7a06ebc5aa8).();
88 void slotNavStartVarcxx . . $ Tree#slotNavStartVar(49f6e7a06ebc5aa8).();
89 void slotNavMainBranchcxx . . $ Tree#slotNavMainBranch(49f6e7a06ebc5aa8).();
90 void slotNavNextBranchcxx . . $ Tree#slotNavNextBranch(49f6e7a06ebc5aa8).();
91 void slotNthMovecxx . . $ Tree#slotNthMove(d4f767463ce0a6b3).(int n);
92
93 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
94 void currentMoveChangedcxx . . $ Tree#currentMoveChanged(490cd2a4f5caa810).(Movecxx . . $ Move#*);
95 void scoreChangedcxx . . $ Tree#scoreChanged(4df37d5d0c1dcce).(int,int,int,int,int,int);
96
97 protected:
98 Movecxx . . $ Move#* findMovecxx . . $ Tree#findMove(5d88c6f2f7d0249f).(Movecxx . . $ Move# *start, int x, int y, bool checkmarker);
99
100 public:
101 Movecxx . . $ Move# *lastMoveInMainBranchcxx . . $ Tree#lastMoveInMainBranch.;
102
103 private:
104 const int boardSizecxx . . $ Tree#boardSize.;
105
106 Movecxx . . $ Move# *rootcxx . . $ Tree#root., *currentcxx . . $ Tree#current.;
107
108 bool loadingSGFcxx . . $ Tree#loadingSGF.;
109 int deadWhitecxx . . $ Tree#deadWhite., deadBlackcxx . . $ Tree#deadBlack.;
110 int terrWhitecxx . . $ Tree#terrWhite., terrBlackcxx . . $ Tree#terrBlack.;
111 int capturesBlackcxx . . $ Tree#capturesBlack., capturesWhitecxx . . $ Tree#capturesWhite.;
112 float komicxx . . $ Tree#komi.;
113 };
114
115 #endif