Debian Codegraph @

src/network/boarddispatch.cpp

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 #include "boarddispatch.h"cxx . . $ `<file>/src/network/boarddispatch.h`/
23 #include "boardwindow.h"cxx . . $ `<file>/src/board/boardwindow.h`/
24 #include "messages.h"cxx . . $ `<file>/src/network/messages.h`/
25 #include "listviews.h"cxx . . $ `<file>/src/listviews.h`/
26 #include "../game_interfaces/resultdialog.h"cxx . . $ `<file>/src/game_interfaces/resultdialog.h`/
27 #include "../game_interfaces/countdialog.h"cxx . . $ `<file>/src/game_interfaces/countdialog.h`/
28 #include "gamedata.h"cxx . . $ `<file>/src/gamedata.h`/
29 #include "playergamelistings.h"cxx . . $ `<file>/src/network/playergamelistings.h`/
30 #include "networkconnection.h"cxx . . $ `<file>/src/network/networkconnection.h`/
31 #include "qgoboard.h"cxx . . $ `<file>/src/game_interfaces/qgoboard.h`/
32 #include "clockdisplay.h"cxx . . $ `<file>/src/board/clockdisplay.h`/
33 #include "tree.h"cxx . . $ `<file>/src/game_tree/tree.h`/
34
35 /* It would be difficult to create a board without a connection,
36 * but we need to either be certain and not test at all, or assign
37 * it at creation. I'm just worried about the client code knowing
38 * too much about the connection.*/
39 /* Also the !boardwindow things? I mean its pretty damn hard
40 * to get these messages without them, we just just need to be sure */
41
42 BoardDispatchcxx . . $ BoardDispatch#::BoardDispatchcxx . . $ BoardDispatch#BoardDispatch(6099f5785a5456d1).(NetworkConnectioncxx . . $ NetworkConnection# * conn, GameListingcxx . . $ GameListing# * l)
43 {
44 connectioncxx . . $ BoardDispatch#connection. = conn;
45 boardwindowcxx . . $ BoardDispatch#boardwindow. = 0;
46 resultdialogcxx . . $ BoardDispatch#resultdialog. = 0;
47 countdialogcxx . . $ BoardDispatch#countdialog. = 0;
48 observerListModelcxx . . $ BoardDispatch#observerListModel. = 0;
49
50 clockStoppedcxx . . $ BoardDispatch#clockStopped. = false;
51 reviewInVariationcxx . . $ BoardDispatch#reviewInVariation. = false;
52 /* New rules. The boarddispatch creates the game data or
53 * whatever loads the game data before passing it to the
54 * boardwindow creates it. The boardwindow deletes it.
55 * there's only one gameData per board */
56 if(l && l->gameDatacxx . . $ GameListing#gameData.)
57 gameDatacxx . . $ BoardDispatch#gameData. = new GameDatacxx . . $ GameData#GameData(53acbc9cc3152f0d).(l->gameDatacxx . . $ GameListing#gameData.); //ORO uses this
58 else
59 gameDatacxx . . $ BoardDispatch#gameData. = new GameDatacxx . . $ GameData#GameData(49f6e7a06ebc5aa8).();
60 gameDatacxx . . $ BoardDispatch#gameData.->placecxx . . $ GameData#place. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). connectioncxx . . $ BoardDispatch#connection.->getPlaceStringcxx . . $ NetworkConnection#getPlaceString(4365c3963150523e).();
61 //maybe we could set number here? if we have it?
62 if(strlen(connectioncxx . . $ BoardDispatch#connection.->getCodecStringcxx . . $ NetworkConnection#getCodecString(33a1f659e94feb42).()) != 0)
63 gameDatacxx . . $ BoardDispatch#gameData.->codeccxx . . $ GameData#codec. =cxx . . $ QString#`operator=`(d02845eef0c33901). "UTF-8"; //all files in unicode where necessary
64
65 /* Not sure we can do this. GameListings have to have a
66 * key. But to go without a gameListing in the BoardDispatch?*/
67 if(l)
68 gameListingcxx . . $ BoardDispatch#gameListing. = l;
69 else
70 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("BoardDispatch::BoardDispatch() : NULL GameListing * passed!");
71 }
72
73 BoardDispatchcxx . . $ BoardDispatch#::~cxx . . $ BoardDispatch#`~BoardDispatch`(ced63f7c635d850d).BoardDispatchcxx . . $ BoardDispatch#()
74 {
75 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Destroying board dispatch\n");
76 /* Clear dispatch so boardwindow doesn't try to close it */
77 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
78 {
79 //clearObservers();
80 boardwindowcxx . . $ BoardDispatch#boardwindow.->setObserverModelcxx . . $ BoardWindow#setObserverModel(c6e1f1e42522b780).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); //crashhere maybe
81 boardwindowcxx . . $ BoardDispatch#boardwindow.->setGamePhasecxx . . $ BoardWindow#setGamePhase(6ad67d8601499648).(phaseEndedcxx . . $ phaseEnded.); //disables all buttons
82 if(observerListModelcxx . . $ BoardDispatch#observerListModel.)
83 delete observerListModelcxx . . $ BoardDispatch#observerListModel.;
84 if(boardwindowcxx . . $ BoardDispatch#boardwindow.->getGamePhasecxx . . $ BoardWindow#getGamePhase(5e5c74c0ced0b080).() != phaseEndedcxx . . $ phaseEnded.)
85 {
86 //got an oro crash here after return to match/rematch
87 //confusion, qgoboard was 0 FIXME
88 //and then after closing the window, apparently
89 //board dispatch was NOT cleared and got called after
90 //here on disconnect
91 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->stopTimecxx . . $ qGoBoard#stopTime(49f6e7a06ebc5aa8).();
92 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->kibitzReceivedcxx . . $ qGoBoard#kibitzReceived(3520e46b33348bf6).("Disconnected"cxx . . $ QString#QString(85c52e162fed56f9).);
93 }
94 boardwindowcxx . . $ BoardDispatch#boardwindow.->setBoardDispatchcxx . . $ BoardWindow#setBoardDispatch(f9aae4eee533680e).(0);
95 }
96 if(resultdialogcxx . . $ BoardDispatch#resultdialog.)
97 delete resultdialogcxx . . $ BoardDispatch#resultdialog.;
98 if(countdialogcxx . . $ BoardDispatch#countdialog.)
99 delete countdialogcxx . . $ BoardDispatch#countdialog.;
100 }
101
102 bool BoardDispatchcxx . . $ BoardDispatch#::canClosecxx . . $ BoardDispatch#canClose(c9857a73d68e59ba).(void)
103 {
104 if(!gameDatacxx . . $ BoardDispatch#gameData.)
105 return true;
106 if(gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. == modeMatchcxx . . $ modeMatch. && gameDatacxx . . $ BoardDispatch#gameData.->fullresultcxx . . $ GameData#fullresult. == 0)
107 {
108 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->slotResignPressedcxx . . $ qGoBoard#slotResignPressed(49f6e7a06ebc5aa8).();
109 /* fullresult won't get set until we receive the server acknowledgement, so
110 * for now, we'll just stop the process each time. Its likely player is only
111 * playing one game so this is more of a warning */
112 return false;
113 }
114 return true;
115 }
116
117 /* FIXME, we need to make better use of this,
118 * or not at all */
119 void BoardDispatchcxx . . $ BoardDispatch#::closeBoardcxx . . $ BoardDispatch#closeBoard(49f6e7a06ebc5aa8).(void)
120 {
121 if(connectioncxx . . $ BoardDispatch#connection.)
122 {
123 switch(boardwindowcxx . . $ BoardDispatch#boardwindow.->getGameModecxx . . $ BoardWindow#getGameMode(a60569f3cb1b846).())
124 {
125 case modeObservecxx . . $ modeObserve.:
126 if(boardwindowcxx . . $ BoardDispatch#boardwindow.->getGamePhasecxx . . $ BoardWindow#getGamePhase(5e5c74c0ced0b080).() != phaseEndedcxx . . $ phaseEnded.)
127 connectioncxx . . $ BoardDispatch#connection.->stopObservingcxx . . $ NetworkConnection#stopObserving(963dc8955d49573e).(gameListingcxx . . $ BoardDispatch#gameListing.); //FIXME
128 break;
129 case modeReviewcxx . . $ modeReview.:
130 connectioncxx . . $ BoardDispatch#connection.->stopReviewingcxx . . $ NetworkConnection#stopReviewing(963dc8955d49573e).(gameListingcxx . . $ BoardDispatch#gameListing.);
131 break;
132 case modeMatchcxx . . $ modeMatch.:
133 /* FIXME if game is over, we don't need to adjourn
134 * nor perhaps with the above modes either
135 * so we should check this out... maybe this
136 * function shouldn't be being called,
137 * at least not from here. Basically,
138 * responsibilities of board dispatch and
139 * qgoboard or boardwindow or whatever are
140 * overlapping here. Something needs to go */
141 /* This shouldn't be here anymore since we do the canClose which
142 * prompts for resign. Or its an IGS only feature FIXME */
143 if(boardwindowcxx . . $ BoardDispatch#boardwindow.->getGamePhasecxx . . $ BoardWindow#getGamePhase(5e5c74c0ced0b080).() != phaseEndedcxx . . $ phaseEnded.)
144 connectioncxx . . $ BoardDispatch#connection.->adjournGamecxx . . $ NetworkConnection#adjournGame(963dc8955d49573e).(gameListingcxx . . $ BoardDispatch#gameListing.); //FIXME
145 if(resultdialogcxx . . $ BoardDispatch#resultdialog.)
146 {
147 delete resultdialogcxx . . $ BoardDispatch#resultdialog.;
148 resultdialogcxx . . $ BoardDispatch#resultdialog. = 0;
149 }
150 break;
151 default:
152 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Unknown game Mode, board dispatch does nothing\n");
153 break;
154 }
155 if(gameDatacxx . . $ BoardDispatch#gameData.)
156 {
157 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Closing board dispatch\n");
158 connectioncxx . . $ BoardDispatch#connection.->closeBoardDispatchcxx . . $ NetworkConnection#closeBoardDispatch(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
159 gameDatacxx . . $ BoardDispatch#gameData. = 0;
160 }
161 }
162 //lets have closeBoardDispatch do this
163 //delete this;
164 }
165
166 void BoardDispatchcxx . . $ BoardDispatch#::setConnectioncxx . . $ BoardDispatch#setConnection(bdf7e61fb2b15626).(NetworkConnectioncxx . . $ NetworkConnection# *conn)
167 {
168 connectioncxx . . $ BoardDispatch#connection. = conn;
169 /* This function is currently called if connection
170 *is closed when a board using that connection is open.
171 *Probably more has to be done here. */
172 }
173
174 void BoardDispatchcxx . . $ BoardDispatch#::moveControlcxx . . $ BoardDispatch#moveControl(4c89b026053e4d32).(QStringcxx . . $ QString# & player)
175 {
176 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->moveControlcxx . . $ qGoBoard#moveControl(4c89b026053e4d32).(player);
177 }
178
179 void BoardDispatchcxx . . $ BoardDispatch#::recvMovecxx . . $ BoardDispatch#recvMove(d174a3d9cfb0dd75).(MoveRecordcxx . . $ MoveRecord# * m)
180 {
181 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
182 {
183 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Board dispatch has no board window\n");
184 return;
185 }
186 if(m->flagscxx . . $ MoveRecord#flags. == MoveRecordcxx . . $ MoveRecord#::SETMOVEcxx . . $ MoveRecord#SETMOVE. ||
187 m->flagscxx . . $ MoveRecord#flags. == MoveRecordcxx . . $ MoveRecord#::BACKWARDcxx . . $ MoveRecord#BACKWARD. ||
188 m->flagscxx . . $ MoveRecord#flags. == MoveRecordcxx . . $ MoveRecord#::FORWARDcxx . . $ MoveRecord#FORWARD. ||
189 m->flagscxx . . $ MoveRecord#flags. == MoveRecordcxx . . $ MoveRecord#::RESETBRANCHcxx . . $ MoveRecord#RESETBRANCH. ||
190 m->flagscxx . . $ MoveRecord#flags. == MoveRecordcxx . . $ MoveRecord#::RESETGAMEcxx . . $ MoveRecord#RESETGAME.)
191 {
192 gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. = modeReviewcxx . . $ modeReview.;
193 }
194 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->handleMovecxx . . $ qGoBoard#handleMove(d174a3d9cfb0dd75).(m);
195 }
196
197 //FIXME should be another way to set the game moves
198 //related directly to the board... then again, I don't
199 //really want to access the tree from here
200 void BoardDispatchcxx . . $ BoardDispatch#::sendMovecxx . . $ BoardDispatch#sendMove(d174a3d9cfb0dd75).(MoveRecordcxx . . $ MoveRecord# * m)
201 {
202 if(m->numbercxx . . $ MoveRecord#number. && m->flagscxx . . $ MoveRecord#flags. == MoveRecordcxx . . $ MoveRecord#::NONEcxx . . $ MoveRecord#NONE.) //i.e., a move
203 gameDatacxx . . $ BoardDispatch#gameData.->movescxx . . $ GameData#moves. = m->numbercxx . . $ MoveRecord#number.;
204 //qDebug("setting game moves: %d", gameData->moves);
205 if(connectioncxx . . $ BoardDispatch#connection.)
206 connectioncxx . . $ BoardDispatch#connection.->sendMovecxx . . $ NetworkConnection#sendMove(74f2a753311a2adf).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number., m);
207 }
208
209 /* FIXME
210 * note that after a request count is sent in tygem,
211 * NO other button can be hit until the response occurs,
212 * you can't even resign.
213 * Its also likely that you can only request one count
214 * per turn.
215 * But so this suggests maybe a lock buttons button.
216 * I don't like the placement of the request count
217 * button right now either. Also, done button means
218 * nothing. If it closes the window, that's one thing
219 * but otherwise, why have two buttons. done is for
220 * score, should be disabled afterwards.
221 * Also, closing windows is generally not allowed. It
222 * should always force a resign or prompt or maybe ask
223 * for an adjourn */
224 void BoardDispatchcxx . . $ BoardDispatch#::sendRequestCountcxx . . $ BoardDispatch#sendRequestCount(49f6e7a06ebc5aa8).(void)
225 {
226 if(connectioncxx . . $ BoardDispatch#connection.)
227 {
228 stopTimecxx . . $ BoardDispatch#stopTime(49f6e7a06ebc5aa8).(); //protocol specific or not? FIXME, huge issue if protocol does this to!!! see cyberoro killActiveMatchTimers, figure out who should do this when
229 boardwindowcxx . . $ BoardDispatch#boardwindow.->setCountEnabledcxx . . $ BoardWindow#setCountEnabled(b45ddcbc8423892c).(false);
230 connectioncxx . . $ BoardDispatch#connection.->sendRequestCountcxx . . $ NetworkConnection#sendRequestCount(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
231 }
232 }
233
234 void BoardDispatchcxx . . $ BoardDispatch#::sendRequestMatchModecxx . . $ BoardDispatch#sendRequestMatchMode(49f6e7a06ebc5aa8).(void)
235 {
236 if(connectioncxx . . $ BoardDispatch#connection.)
237 {
238 stopTimecxx . . $ BoardDispatch#stopTime(49f6e7a06ebc5aa8).(); //maybe??
239 boardwindowcxx . . $ BoardDispatch#boardwindow.->setUndoEnabledcxx . . $ BoardWindow#setUndoEnabled(b45ddcbc8423892c).(false);
240 connectioncxx . . $ BoardDispatch#connection.->sendRequestMatchModecxx . . $ NetworkConnection#sendRequestMatchMode(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
241 }
242 }
243
244 void BoardDispatchcxx . . $ BoardDispatch#::sendTimeLosscxx . . $ BoardDispatch#sendTimeLoss(49f6e7a06ebc5aa8).(void)
245 {
246 static bool already_sent = false;
247 if(connectioncxx . . $ BoardDispatch#connection. && !already_sent)
248 connectioncxx . . $ BoardDispatch#connection.->sendTimeLosscxx . . $ NetworkConnection#sendTimeLoss(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
249 already_sent = true;
250 }
251
252 void BoardDispatchcxx . . $ BoardDispatch#::gameDataChangedcxx . . $ BoardDispatch#gameDataChanged(49f6e7a06ebc5aa8).(void)
253 {
254 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.) //this really shouldn't happen
255 return;
256 boardwindowcxx . . $ BoardDispatch#boardwindow.->gameDataChangedcxx . . $ BoardWindow#gameDataChanged(49f6e7a06ebc5aa8).();
257 }
258
259 void BoardDispatchcxx . . $ BoardDispatch#::openBoardcxx . . $ BoardDispatch#openBoard(49f6e7a06ebc5aa8).(void)
260 {
261 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
262 {
263 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("BoardDispatch::openBoard() : window already open\n");
264 return;
265 }
266 if(!connectioncxx . . $ BoardDispatch#connection.)
267 {
268 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("BoardDispatch::openBoard() : connection not set\n");
269 return;
270 }
271 mergeListingIntoRecordcxx . . $ BoardDispatch#mergeListingIntoRecord(f3b8c0e6f011b5d7).(gameDatacxx . . $ BoardDispatch#gameData., gameListingcxx . . $ BoardDispatch#gameListing.);
272
273 bool imWhite = false;
274 bool imBlack = false;
275 QStringcxx . . $ QString# myName = connectioncxx . . $ QString#QString(132dd6869045752b).->getUsernamecxx . . $ NetworkConnection#getUsername(a2fb7a6ce195d51).();
276 if(gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. == modeUndefinedcxx . . $ modeUndefined.)
277 {
278
279 imWhite = (gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). myName);
280 imBlack = (gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. ==cxx . . $ `operator==`(5bc2975d2d751687). myName);
281 if ( imWhite && imBlack )
282 gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. = modeTeachcxx . . $ modeTeach.;
283 else if ( imWhite || imBlack)
284 gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. = modeMatchcxx . . $ modeMatch.;
285 else
286 gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. = modeObservecxx . . $ modeObserve.;
287 }
288 //else, something else has set it ahead of time
289
290 boardwindowcxx . . $ BoardDispatch#boardwindow. = new BoardWindowcxx . . $ BoardWindow#BoardWindow(50cc386dd30baa3b).(gameDatacxx . . $ BoardDispatch#gameData., imBlack, imWhite, this);
291 if(!observerListModelcxx . . $ BoardDispatch#observerListModel.)
292 {
293 observerListModelcxx . . $ BoardDispatch#observerListModel. = new ObserverListModelcxx . . $ ObserverListModel#();
294 observerListModelcxx . . $ BoardDispatch#observerListModel.->setAccountNamecxx . . $ PlayerListModel#setAccountName(3520e46b33348bf6).(myName);
295 }
296 boardwindowcxx . . $ BoardDispatch#boardwindow.->setObserverModelcxx . . $ BoardWindow#setObserverModel(c6e1f1e42522b780).(observerListModelcxx . . $ BoardDispatch#observerListModel.);
297 // do we need the below?
298 //boardwindow->qgoboard->set_statedMoveCount(gameData->moves);
299 boardwindowcxx . . $ BoardDispatch#boardwindow.->gameDataChangedcxx . . $ BoardWindow#gameDataChanged(49f6e7a06ebc5aa8).(); //necessary at least for cursor
300 if(gameDatacxx . . $ BoardDispatch#gameData.->record_sgfcxx . . $ GameData#record_sgf. !=cxx . . $ `operator!=`(5bc2975d2d751687). QStringcxx . . $ QString#QString(ced63f7c635d850d).()) //for ORO
301 boardwindowcxx . . $ BoardDispatch#boardwindow.->getTreecxx . . $ BoardWindow#getTree(b74f38e721d67691).()->slotNavLastcxx . . $ Tree#slotNavLast(49f6e7a06ebc5aa8).();
302 }
303
304 void BoardDispatchcxx . . $ BoardDispatch#::recvTimecxx . . $ BoardDispatch#recvTime(63f8d2dcefae8817).(const TimeRecordcxx . . $ TimeRecord# & wt, const TimeRecordcxx . . $ TimeRecord# & bt)
305 {
306 /* I don't think I care if its not ongoing. That's a minor issue
307 * if we recvTime, we should set it */
308 if(!boardwindowcxx . . $ BoardDispatch#boardwindow. /*|| boardwindow->getGamePhase() != phaseOngoing*/)
309 return;
310
311 boardwindowcxx . . $ BoardDispatch#boardwindow.->getClockDisplaycxx . . $ BoardWindow#getClockDisplay(41084e4a97dfeac0).()->setTimeInfocxx . . $ ClockDisplay#setTimeInfo(748afa4755bc9595).(bt.timecxx . . $ TimeRecord#time.,
312 bt.stones_periodscxx . . $ TimeRecord#stones_periods.,
313 wt.timecxx . . $ TimeRecord#time.,
314 wt.stones_periodscxx . . $ TimeRecord#stones_periods.);
315 }
316
317 void BoardDispatchcxx . . $ BoardDispatch#::recvAddTimecxx . . $ BoardDispatch#recvAddTime(909c33aa10af95dd).(int minutes, QStringcxx . . $ QString# player_name)
318 {
319 if(gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). player_name)
320 {
321 TimeRecordcxx . . $ TimeRecord# t = boardwindowcxx . . $ BoardDispatch#boardwindow.->getClockDisplaycxx . . $ BoardWindow#getClockDisplay(41084e4a97dfeac0).()->getTimeRecordcxx . . $ ClockDisplay#getTimeRecord(1da1f30878cd15cd).(false);
322 boardwindowcxx . . $ BoardDispatch#boardwindow.->getClockDisplaycxx . . $ BoardWindow#getClockDisplay(41084e4a97dfeac0).()->setTimeInfocxx . . $ ClockDisplay#setTimeInfo(748afa4755bc9595).(0, -1,
323 t.timecxx . . $ TimeRecord#time. + (60 * minutes),
324 t.stones_periodscxx . . $ TimeRecord#stones_periods.);
325 }
326 else if(gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. ==cxx . . $ `operator==`(5bc2975d2d751687). player_name)
327 {
328 TimeRecordcxx . . $ TimeRecord# t = boardwindowcxx . . $ BoardDispatch#boardwindow.->getClockDisplaycxx . . $ BoardWindow#getClockDisplay(41084e4a97dfeac0).()->getTimeRecordcxx . . $ ClockDisplay#getTimeRecord(1da1f30878cd15cd).(true);
329 boardwindowcxx . . $ BoardDispatch#boardwindow.->getClockDisplaycxx . . $ BoardWindow#getClockDisplay(41084e4a97dfeac0).()->setTimeInfocxx . . $ ClockDisplay#setTimeInfo(748afa4755bc9595).(t.timecxx . . $ TimeRecord#time. + (60 * minutes),
330 t.stones_periodscxx . . $ TimeRecord#stones_periods., 0, -1);
331 }
332 else
333 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Received add time for unknown player name %s", player_name.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
334 }
335
336 void BoardDispatchcxx . . $ BoardDispatch#::recvResultcxx . . $ BoardDispatch#recvResult(c72a8b5aed169521).(GameResultcxx . . $ GameResult# * r)
337 {
338 /* FIXME there's still some issues here with this being called from certain services
339 * at the wrong time, etc. */
340 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
341 return;
342 if(!r)
343 {
344 GameResultcxx . . $ GameResult# res = boardwindowcxx . . $ BoardDispatch#boardwindow.->getTreecxx . . $ BoardWindow#getTree(b74f38e721d67691).()->retrieveScorecxx . . $ Tree#retrieveScore(ba5abcee0082dfc2).();
345 r = &res;
346 }
347 // also set on GameData of boardwindow ???
348 if(!gameDatacxx . . $ BoardDispatch#gameData.)
349 {
350 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("No game record to check with result");
351 return;
352 }
353 /* IGS passes sparse entries... bit ugly but: */
354 if(r->winner_namecxx . . $ GameResult#winner_name. ==cxx . . $ `operator==`(5bc2975d2d751687). QStringcxx . . $ QString#QString(ced63f7c635d850d).() && r->winner_colorcxx . . $ GameResult#winner_color. == stoneNonecxx . . $ stoneNone. && r->resultcxx . . $ GameResult#result. != GameResultcxx . . $ GameResult#::NOGAMEcxx . . $ GameResult#NOGAME.)
355 {
356 if(r->loser_namecxx . . $ GameResult#loser_name. ==cxx . . $ `operator==`(5bc2975d2d751687). gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name.)
357 {
358 r->winner_namecxx . . $ GameResult#winner_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name.;
359 r->winner_colorcxx . . $ GameResult#winner_color. = stoneBlackcxx . . $ stoneBlack.;
360 }
361 else
362 {
363 r->winner_namecxx . . $ GameResult#winner_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name.;
364 r->winner_colorcxx . . $ GameResult#winner_color. = stoneWhitecxx . . $ stoneWhite.;
365 }
366 }
367 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->setResultcxx . . $ qGoBoard#setResult(cbc950be3aaaa49b).(*r);
368
369 //saveRecordToGameData();
370 //testing
371 //connection->sendRematchRequest(gameData->number);
372 }
373
374 /* Why doesn't this appear to save comments that we've seen in ORO games when rejoined?!? FIXME */
375 void BoardDispatchcxx . . $ BoardDispatch#::saveRecordToGameDatacxx . . $ BoardDispatch#saveRecordToGameData(49f6e7a06ebc5aa8).(void)
376 {
377 if(gameDatacxx . . $ BoardDispatch#gameData.->record_sgfcxx . . $ GameData#record_sgf. ==cxx . . $ `operator==`(5bc2975d2d751687). QStringcxx . . $ QString#QString(ced63f7c635d850d).())
378 {
379 boardwindowcxx . . $ BoardDispatch#boardwindow.->saveRecordToGameDatacxx . . $ BoardWindow#saveRecordToGameData(49f6e7a06ebc5aa8).(); //for ORO
380 connectioncxx . . $ BoardDispatch#connection.->saveIfDoesntSavecxx . . $ NetworkConnection#saveIfDoesntSave(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.); //for ORO
381 }
382 }
383
384 void BoardDispatchcxx . . $ BoardDispatch#::sendResultcxx . . $ BoardDispatch#sendResult(c72a8b5aed169521).(GameResultcxx . . $ GameResult# * r)
385 {
386 connectioncxx . . $ BoardDispatch#connection.->sendResultcxx . . $ NetworkConnection#sendResult(f9859626c725809).(gameDatacxx . . $ BoardDispatch#gameData., r);
387 }
388
389 void BoardDispatchcxx . . $ BoardDispatch#::recvObservercxx . . $ BoardDispatch#recvObserver(fcd883ebbd0934ee).(PlayerListingcxx . . $ PlayerListing# * p, bool present)
390 {
391 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
392 return;
393 if(!gameDatacxx . . $ BoardDispatch#gameData.)
394 {
395 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("received observer but no game data!!");
396 return;
397 }
398 stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned short>::iteratorcxx . . $ std/vector#iterator# i = stdcxx . . $ std/::findcxx . . $ std/find(a92da12e15934614).(p->room_listcxx . . $ PlayerListing#room_list..begincxx . . $ std/vector#begin(55a6de06420d4903).(), p->room_listcxx . . $ PlayerListing#room_list..endcxx . . $ std/vector#end(55a6de06420d4903).(), (unsigned short)gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
399 if(present)
400 {
401 if(p->room_listcxx . . $ PlayerListing#room_list..endcxx . . $ std/vector#end(55a6de06420d4903).() ==cxx . . $ __gnu_cxx/`operator==`(30ee64f2df4eef8b). i)
402 p->room_listcxx . . $ PlayerListing#room_list..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
403 observerListModelcxx . . $ BoardDispatch#observerListModel.->insertListingcxx . . $ PlayerListModel#insertListing(122195e397f39e1b).(p);
404 }
405 else if(i !=cxx . . $ __gnu_cxx/`operator!=`(30ee64f2df4eef8b). p->room_listcxx . . $ PlayerListing#room_list..endcxx . . $ std/vector#end(55a6de06420d4903).())
406 {
407 p->room_listcxx . . $ PlayerListing#room_list..erasecxx . . $ std/vector#erase(351407f384f345bc).(icxx . . $ __gnu_cxx/__normal_iterator#__normal_iterator(459a7e7b9fbe7640).);
408 observerListModelcxx . . $ BoardDispatch#observerListModel.->removeListingcxx . . $ PlayerListModel#removeListing(122195e397f39e1b).(p);
409 }
410 }
411
412 void BoardDispatchcxx . . $ BoardDispatch#::clearObserverscxx . . $ BoardDispatch#clearObservers(49f6e7a06ebc5aa8).(void)
413 {
414 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
415 return;
416 observerListModelcxx . . $ BoardDispatch#observerListModel.->clearListcxx . . $ PlayerListModel#clearList(49f6e7a06ebc5aa8).();
417 }
418
419 void BoardDispatchcxx . . $ BoardDispatch#::recvKibitzcxx . . $ BoardDispatch#recvKibitz(3458fe3960d5051).(QStringcxx . . $ QString# name, QStringcxx . . $ QString# text)
420 {
421 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
422 return;
423 if(name ==cxx . . $ `operator==`(5bc2975d2d751687). QStringcxx . . $ QString#QString(ced63f7c635d850d).())
424 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->kibitzReceivedcxx . . $ qGoBoard#kibitzReceived(3520e46b33348bf6).(text);
425 else
426 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->kibitzReceivedcxx . . $ qGoBoard#kibitzReceived(3520e46b33348bf6).(name +cxx . . $ operator+(3d22f08efddf8107). ":" +cxx . . $ operator+(fab9b4f80031f353). text);
427 }
428
429 void BoardDispatchcxx . . $ BoardDispatch#::sendKibitzcxx . . $ BoardDispatch#sendKibitz(7df51288a9ebd664).(QStringcxx . . $ QString# text)
430 {
431 if(connectioncxx . . $ BoardDispatch#connection.)
432 connectioncxx . . $ BoardDispatch#connection.->sendMsgcxx . . $ NetworkConnection#sendMsg(679a3afc1f0f3212).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number., textcxx . . $ QString#QString(132dd6869045752b).);
433 }
434
435 /* FIXME: is this legitimate? doesn't qgoboard_network handle
436 * entering score mode within handleMove? why would we do it here?
437 * find out who calls this and why. Could be for special cases
438 * but... Okay... looks like everyone calls it... not sure
439 * what to say about that... might be redundant with set_move
440 * or perhaps we've been letting server tell us when to enter
441 * score mode and maybe set_move code should go*/
442 void BoardDispatchcxx . . $ BoardDispatch#::recvEnterScoreModecxx . . $ BoardDispatch#recvEnterScoreMode(49f6e7a06ebc5aa8).(void)
443 {
444 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
445 return;
446 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->enterScoreModecxx . . $ qGoBoard#enterScoreMode(49f6e7a06ebc5aa8).();
447 }
448
449 void BoardDispatchcxx . . $ BoardDispatch#::recvLeaveScoreModecxx . . $ BoardDispatch#recvLeaveScoreMode(49f6e7a06ebc5aa8).(void)
450 {
451 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
452 return;
453 startTimecxx . . $ BoardDispatch#startTime(49f6e7a06ebc5aa8).(); //protocol specific or not?
454 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->leaveScoreModecxx . . $ qGoBoard#leaveScoreMode(49f6e7a06ebc5aa8).();
455 }
456
457 void BoardDispatchcxx . . $ BoardDispatch#::recvRequestCountcxx . . $ BoardDispatch#recvRequestCount(49f6e7a06ebc5aa8).(void)
458 {
459 //this is those count messages before passes
460 //FIXME
461 //we need to copy the matchinvite file to a
462 //RequestCountDialog, etc.
463 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
464 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->requestCountDialogcxx . . $ qGoBoard#requestCountDialog(49f6e7a06ebc5aa8).();
465 }
466
467 void BoardDispatchcxx . . $ BoardDispatch#::recvAcceptCountRequestcxx . . $ BoardDispatch#recvAcceptCountRequest(49f6e7a06ebc5aa8).(void)
468 {
469 recvEnterScoreModecxx . . $ BoardDispatch#recvEnterScoreMode(49f6e7a06ebc5aa8).();
470 //is this all?
471 }
472
473 void BoardDispatchcxx . . $ BoardDispatch#::recvRejectCountRequestcxx . . $ BoardDispatch#recvRejectCountRequest(49f6e7a06ebc5aa8).(void)
474 {
475 //so we can nag them endlessly:
476 //no, seriously, FIXME server protocol may have some limit
477 //on this
478 boardwindowcxx . . $ BoardDispatch#boardwindow.->setCountEnabledcxx . . $ BoardWindow#setCountEnabled(b45ddcbc8423892c).(true);
479 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
480 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->recvRefuseCountcxx . . $ qGoBoard#recvRefuseCount(49f6e7a06ebc5aa8).();
481 }
482
483 void BoardDispatchcxx . . $ BoardDispatch#::recvRequestDrawcxx . . $ BoardDispatch#recvRequestDraw(49f6e7a06ebc5aa8).(void)
484 {
485 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
486 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->requestDrawDialogcxx . . $ qGoBoard#requestDrawDialog(49f6e7a06ebc5aa8).();
487 }
488
489 void BoardDispatchcxx . . $ BoardDispatch#::recvAcceptDrawRequestcxx . . $ BoardDispatch#recvAcceptDrawRequest(49f6e7a06ebc5aa8).(void)
490 {
491 //FIXME
492 //maybe we just draw?
493 }
494
495 void BoardDispatchcxx . . $ BoardDispatch#::recvRefuseDrawRequestcxx . . $ BoardDispatch#recvRefuseDrawRequest(49f6e7a06ebc5aa8).(void)
496 {
497 //FIXME
498 startTimecxx . . $ BoardDispatch#startTime(49f6e7a06ebc5aa8).(); //protocol specific or not
499 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
500 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->recvRefuseDrawcxx . . $ qGoBoard#recvRefuseDraw(49f6e7a06ebc5aa8).();
501 }
502
503 void BoardDispatchcxx . . $ BoardDispatch#::recvRequestMatchModecxx . . $ BoardDispatch#recvRequestMatchMode(49f6e7a06ebc5aa8).(void)
504 {
505 if(!boardwindowcxx . . $ BoardDispatch#boardwindow.)
506 return;
507 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->requestMatchModeDialogcxx . . $ qGoBoard#requestMatchModeDialog(49f6e7a06ebc5aa8).();
508 }
509
510 void BoardDispatchcxx . . $ BoardDispatch#::sendAcceptMatchModeRequestcxx . . $ BoardDispatch#sendAcceptMatchModeRequest(49f6e7a06ebc5aa8).(void)
511 {
512 connectioncxx . . $ BoardDispatch#connection.->sendAcceptRequestMatchModecxx . . $ NetworkConnection#sendAcceptRequestMatchMode(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
513 }
514
515 void BoardDispatchcxx . . $ BoardDispatch#::sendRefuseMatchModeRequestcxx . . $ BoardDispatch#sendRefuseMatchModeRequest(49f6e7a06ebc5aa8).(void)
516 {
517 startTimecxx . . $ BoardDispatch#startTime(49f6e7a06ebc5aa8).(); //protocol specific or not?
518 connectioncxx . . $ BoardDispatch#connection.->sendDeclineRequestMatchModecxx . . $ NetworkConnection#sendDeclineRequestMatchMode(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
519 }
520
521 void BoardDispatchcxx . . $ BoardDispatch#::recvRejectMatchModeRequestcxx . . $ BoardDispatch#recvRejectMatchModeRequest(49f6e7a06ebc5aa8).(void)
522 {
523 boardwindowcxx . . $ BoardDispatch#boardwindow.->setUndoEnabledcxx . . $ BoardWindow#setUndoEnabled(b45ddcbc8423892c).(true);
524 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
525 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->recvRefuseMatchModecxx . . $ qGoBoard#recvRefuseMatchMode(49f6e7a06ebc5aa8).();
526 }
527
528 void BoardDispatchcxx . . $ BoardDispatch#::createCountDialogcxx . . $ BoardDispatch#createCountDialog(49f6e7a06ebc5aa8).(void)
529 {
530 // pretty sure we need to get the game result from the boardwindow
531 // without triggering an end game result dialog or something like
532 // that FIXME
533 countdialogcxx . . $ BoardDispatch#countdialog. = new CountDialogcxx . . $ CountDialog#CountDialog(71dd77c1ddb961da).(boardwindowcxx . . $ BoardDispatch#boardwindow., this, gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
534 }
535
536 void BoardDispatchcxx . . $ BoardDispatch#::recvRejectCountcxx . . $ BoardDispatch#recvRejectCount(49f6e7a06ebc5aa8).(void)
537 {
538 if(countdialogcxx . . $ BoardDispatch#countdialog.)
539 countdialogcxx . . $ BoardDispatch#countdialog.->recvRejectCountcxx . . $ CountDialog#recvRejectCount(49f6e7a06ebc5aa8).();
540 }
541
542 void BoardDispatchcxx . . $ BoardDispatch#::recvAcceptCountcxx . . $ BoardDispatch#recvAcceptCount(49f6e7a06ebc5aa8).(void)
543 {
544 if(countdialogcxx . . $ BoardDispatch#countdialog.)
545 countdialogcxx . . $ BoardDispatch#countdialog.->recvAcceptCountcxx . . $ CountDialog#recvAcceptCount(49f6e7a06ebc5aa8).();
546 }
547
548 void BoardDispatchcxx . . $ BoardDispatch#::sendRejectCountcxx . . $ BoardDispatch#sendRejectCount(49f6e7a06ebc5aa8).(void)
549 {
550 connectioncxx . . $ BoardDispatch#connection.->sendRejectCountcxx . . $ NetworkConnection#sendRejectCount(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.);
551 }
552
553 void BoardDispatchcxx . . $ BoardDispatch#::sendAcceptCountcxx . . $ BoardDispatch#sendAcceptCount(49f6e7a06ebc5aa8).(void)
554 {
555 connectioncxx . . $ BoardDispatch#connection.->sendAcceptCountcxx . . $ NetworkConnection#sendAcceptCount(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.);
556 }
557
558 void BoardDispatchcxx . . $ BoardDispatch#::recvRequestAdjourncxx . . $ BoardDispatch#recvRequestAdjourn(49f6e7a06ebc5aa8).(void)
559 {
560 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
561 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->requestAdjournDialogcxx . . $ qGoBoard#requestAdjournDialog(49f6e7a06ebc5aa8).();
562 }
563
564 void BoardDispatchcxx . . $ BoardDispatch#::sendAdjournRequestcxx . . $ BoardDispatch#sendAdjournRequest(49f6e7a06ebc5aa8).(void)
565 {
566 connectioncxx . . $ BoardDispatch#connection.->sendAdjournRequestcxx . . $ NetworkConnection#sendAdjournRequest(49f6e7a06ebc5aa8).();
567 }
568
569 /* We either don't need this or it might overlap with some other message
570 * like an end game message */
571 void BoardDispatchcxx . . $ BoardDispatch#::sendAdjourncxx . . $ BoardDispatch#sendAdjourn(49f6e7a06ebc5aa8).(void)
572 {
573 connectioncxx . . $ BoardDispatch#connection.->sendAdjourncxx . . $ NetworkConnection#sendAdjourn(49f6e7a06ebc5aa8).();
574 }
575
576 void BoardDispatchcxx . . $ BoardDispatch#::sendRefuseAdjourncxx . . $ BoardDispatch#sendRefuseAdjourn(49f6e7a06ebc5aa8).(void)
577 {
578 connectioncxx . . $ BoardDispatch#connection.->sendRefuseAdjourncxx . . $ NetworkConnection#sendRefuseAdjourn(49f6e7a06ebc5aa8).();
579 }
580
581 void BoardDispatchcxx . . $ BoardDispatch#::sendAcceptCountRequestcxx . . $ BoardDispatch#sendAcceptCountRequest(49f6e7a06ebc5aa8).(void)
582 {
583 connectioncxx . . $ BoardDispatch#connection.->sendAcceptCountRequestcxx . . $ NetworkConnection#sendAcceptCountRequest(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.);
584 }
585
586 void BoardDispatchcxx . . $ BoardDispatch#::sendRefuseCountRequestcxx . . $ BoardDispatch#sendRefuseCountRequest(49f6e7a06ebc5aa8).(void)
587 {
588 startTimecxx . . $ BoardDispatch#startTime(49f6e7a06ebc5aa8).(); //protocol specific or not?
589 connectioncxx . . $ BoardDispatch#connection.->sendRefuseCountRequestcxx . . $ NetworkConnection#sendRefuseCountRequest(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.);
590 }
591
592 void BoardDispatchcxx . . $ BoardDispatch#::sendAcceptDrawRequestcxx . . $ BoardDispatch#sendAcceptDrawRequest(49f6e7a06ebc5aa8).(void)
593 {
594 connectioncxx . . $ BoardDispatch#connection.->sendAcceptDrawRequestcxx . . $ NetworkConnection#sendAcceptDrawRequest(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.);
595 }
596
597 void BoardDispatchcxx . . $ BoardDispatch#::sendRefuseDrawRequestcxx . . $ BoardDispatch#sendRefuseDrawRequest(49f6e7a06ebc5aa8).(void)
598 {
599 connectioncxx . . $ BoardDispatch#connection.->sendRefuseDrawRequestcxx . . $ NetworkConnection#sendRefuseDrawRequest(53acbc9cc3152f0d).(gameDatacxx . . $ BoardDispatch#gameData.);
600 }
601
602 void BoardDispatchcxx . . $ BoardDispatch#::adjournGamecxx . . $ BoardDispatch#adjournGame(49f6e7a06ebc5aa8).(void)
603 {
604 // in case we get this after we've closed window
605 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
606 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->adjournGamecxx . . $ qGoBoard#adjournGame(49f6e7a06ebc5aa8).();
607 //wrong, sometimes there is a dispatch if we want to talk, etc.
608 //let the close and the connection delete things
609 //delete this; //if the game is adjourned, there's no dispatch
610 }
611
612 void BoardDispatchcxx . . $ BoardDispatch#::setRematchDialogcxx . . $ BoardDispatch#setRematchDialog(916b84551040fc84).(ResultDialogcxx . . $ ResultDialog# * r)
613 {
614 resultdialogcxx . . $ BoardDispatch#resultdialog. = r;
615 }
616
617 void BoardDispatchcxx . . $ BoardDispatch#::sendRematchRequestcxx . . $ BoardDispatch#sendRematchRequest(49f6e7a06ebc5aa8).(void)
618 {
619 connectioncxx . . $ BoardDispatch#connection.->sendRematchRequestcxx . . $ NetworkConnection#sendRematchRequest(49f6e7a06ebc5aa8).();
620 }
621
622 void BoardDispatchcxx . . $ BoardDispatch#::recvRematchRequestcxx . . $ BoardDispatch#recvRematchRequest(49f6e7a06ebc5aa8).(void) //crash here somehow
623 {
624 if(resultdialogcxx . . $ BoardDispatch#resultdialog.)
625 resultdialogcxx . . $ BoardDispatch#resultdialog.->recvRematchRequestcxx . . $ ResultDialog#recvRematchRequest(49f6e7a06ebc5aa8).();
626 else if(gameDatacxx . . $ BoardDispatch#gameData.) //incase we get this after recreating new dispatch somehow
627 resultdialogcxx . . $ BoardDispatch#resultdialog. = new ResultDialogcxx . . $ ResultDialog#ResultDialog(8247bc9e6e961c84).(boardwindowcxx . . $ BoardDispatch#boardwindow., this, gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number., 0);
628 else
629 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("board dispatch received rematch but no gameData present");
630 }
631
632 void BoardDispatchcxx . . $ BoardDispatch#::sendTimecxx . . $ BoardDispatch#sendTime(49f6e7a06ebc5aa8).(void)
633 {
634 if(connectioncxx . . $ BoardDispatch#connection.)
635 connectioncxx . . $ BoardDispatch#connection.->sendTimecxx . . $ NetworkConnection#sendTime(f9aae4eee533680e).(this);
636 }
637
638 void BoardDispatchcxx . . $ BoardDispatch#::sendAddTimecxx . . $ BoardDispatch#sendAddTime(d4f767463ce0a6b3).(int minutes)
639 {
640 connectioncxx . . $ BoardDispatch#connection.->sendAddTimecxx . . $ NetworkConnection#sendAddTime(d4f767463ce0a6b3).(minutes);
641 }
642
643 /* So far just to trigger timer */
644 void BoardDispatchcxx . . $ BoardDispatch#::startGamecxx . . $ BoardDispatch#startGame(49f6e7a06ebc5aa8).(void)
645 {
646 // Only used by Tygem connection, so assume that this is qGoBoardNetworkInterface::startGame();
647 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->startGamecxx . . $ qGoBoard#startGame(49f6e7a06ebc5aa8).();
648 }
649
650 void BoardDispatchcxx . . $ BoardDispatch#::sendRematchAcceptcxx . . $ BoardDispatch#sendRematchAccept(49f6e7a06ebc5aa8).(void)
651 {
652 connectioncxx . . $ BoardDispatch#connection.->sendRematchAcceptcxx . . $ NetworkConnection#sendRematchAccept(49f6e7a06ebc5aa8).();
653 resultdialogcxx . . $ BoardDispatch#resultdialog. = 0;
654 }
655
656 void BoardDispatchcxx . . $ BoardDispatch#::recvRefuseAdjourncxx . . $ BoardDispatch#recvRefuseAdjourn(49f6e7a06ebc5aa8).(void)
657 {
658 // in case we get this after we've closed window
659 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
660 boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->recvRefuseAdjourncxx . . $ qGoBoard#recvRefuseAdjourn(49f6e7a06ebc5aa8).();
661 }
662
663 /* When we start observing a game, we get a little bit of information,
664 * the rest we have to get from a listing that the room dispatch passes
665 * us on creation. This could be trouble later because its specific
666 * to IGS, but maybe not */
667 void BoardDispatchcxx . . $ BoardDispatch#::mergeListingIntoRecordcxx . . $ BoardDispatch#mergeListingIntoRecord(f3b8c0e6f011b5d7).(GameDatacxx . . $ GameData# * r, GameListingcxx . . $ GameListing# * l)
668 {
669 /* IGS doesn't, for instance, serve up the board size very well,
670 * so we need to get that from somewhere else... the listing,
671 * but if its a new game...
672 * Basically only the game dialog knows the board size, so it
673 * has to supply it.*/
674 /* I'm thinking that we should just have the gamedialog create
675 * the board. It should know the room, all the info, etc. */
676 if(r->white_rankcxx . . $ GameData#white_rank. ==cxx . . $ `operator==`(5bc2975d2d751687). QStringcxx . . $ QString#QString(ced63f7c635d850d).())
677 {
678 r->white_rankcxx . . $ GameData#white_rank. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). l->white_rankcxx . . $ GameListing#white_rank(a2fb7a6ce195d51).();
679 r->black_rankcxx . . $ GameData#black_rank. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). l->black_rankcxx . . $ GameListing#black_rank(a2fb7a6ce195d51).();
680 }
681 if(r->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). QStringcxx . . $ QString#QString(ced63f7c635d850d).())
682 {
683 r->white_namecxx . . $ GameData#white_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). l->white_namecxx . . $ GameListing#white_name(a2fb7a6ce195d51).();
684 r->black_namecxx . . $ GameData#black_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). l->black_namecxx . . $ GameListing#black_name(a2fb7a6ce195d51).();
685 }
686 /* FIXME Oro, second matches tend to lose the ranks. Add rematch
687 * and decline msgs and then fix this up. Also nigiri cursor */
688 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("bd::mlir %s %s vs %s %s", r->white_namecxx . . $ GameData#white_name..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(), r->white_rankcxx . . $ GameData#white_rank..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),
689 r->black_namecxx . . $ GameData#black_name..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(), r->black_rankcxx . . $ GameData#black_rank..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
690 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("komi: %f\n", r->komicxx . . $ GameData#komi.);
691 /* FIXME, no komi in ORO listing... and
692 * what is this function for again? Maybe we shouldn't
693 * always do this?? FIXME FIXME */
694
695 /* FIXME we get here from IGS without white or black names somehow.
696 * also if game list has changed before refresh there's other issues */
697
698 /* FIXME if player observes IGS through console, the ranks can come up wrong
699 * possibly because the games list hasn't been refreshed and that thing above
700 * sets the ranks to what they are in the listing. They're not passed in the
701 * game info from the server. There's little that can be done about it, its
702 * more of a protocol bug. And I still want to get rid of this whole function */
703
704 //FIXME, trying not overwriting komi for now
705 //FIXME This is not okay, komi is apparently not passed all the time or with
706 //observed games on IGS, but we shouldn't have to do this:
707 if(connectioncxx . . $ BoardDispatch#connection.->getPlaceStringcxx . . $ NetworkConnection#getPlaceString(4365c3963150523e).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "IGS")
708 r->komicxx . . $ GameData#komi. = l->komicxx . . $ GameListing#komi.;
709 //r->board_size = l->board_size;
710 r->movescxx . . $ GameData#moves. = l->movescxx . . $ GameListing#moves.;
711 //r->handicap = l->handicap;
712 r->Bycxx . . $ GameData#By. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). l->Bycxx . . $ GameListing#By.;
713 r->FRcxx . . $ GameData#FR. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). l->FRcxx . . $ GameListing#FR.;
714 r->observerscxx . . $ GameData#observers. = l->observerscxx . . $ GameListing#observers.;
715
716 //GameData * gd = qgoif->makeGameData(gameData); //FIXME
717 if (gameDatacxx . . $ BoardDispatch#gameData.->FRcxx . . $ GameData#FR..containscxx . . $ QString#contains(8cce4688c16f48f3).("F"cxx . . $ QString#QString(85c52e162fed56f9).))
718 gameDatacxx . . $ BoardDispatch#gameData.->free_ratedcxx . . $ GameData#free_rated. = FREEcxx . . $ FREE.;
719 else if (gameDatacxx . . $ BoardDispatch#gameData.->FRcxx . . $ GameData#FR..containscxx . . $ QString#contains(8cce4688c16f48f3).("T"cxx . . $ QString#QString(85c52e162fed56f9).))
720 gameDatacxx . . $ BoardDispatch#gameData.->free_ratedcxx . . $ GameData#free_rated. = TEACHINGcxx . . $ TEACHING.;
721 else
722 gameDatacxx . . $ BoardDispatch#gameData.->free_ratedcxx . . $ GameData#free_rated. = RATEDcxx . . $ RATED.;
723
724 gameDatacxx . . $ BoardDispatch#gameData.->datecxx . . $ GameData#date. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QDatecxx . . $ QDate#::currentDatecxx . . $ QDate#currentDate(f1d16c240bbd73a4).().toStringcxx . . $ QDate#toString(5555d9024dcf93fb).("dd MM yyyy"cxx . . $ QString#QString(85c52e162fed56f9).) ;
725 }
726
727 /* There's no "black komi" or I think we'd store it as a negative float.
728 * IGS lists them both the same though on the status messages which
729 * makes even less sense then the status message itself */
730 bool BoardDispatchcxx . . $ BoardDispatch#::isAttribBoardcxx . . $ BoardDispatch#isAttribBoard(261315095228867b).(QStringcxx . . $ QString# black_player, unsigned int black_captures, float black_komi, QStringcxx . . $ QString# white_player, unsigned int white_captures, float white_komi)
731 {
732 if(!gameDatacxx . . $ BoardDispatch#gameData.)
733 return 0;
734 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("%s %s %s %s %d %d %d %d %f %f (b%f)\n",
735 black_player.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),
736 gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),
737 white_player.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),
738 gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(),
739 black_captures,
740 gameDatacxx . . $ BoardDispatch#gameData.->black_prisonerscxx . . $ GameData#black_prisoners.,
741 white_captures,
742 gameDatacxx . . $ BoardDispatch#gameData.->white_prisonerscxx . . $ GameData#white_prisoners.,
743 white_komi,
744 gameDatacxx . . $ BoardDispatch#gameData.->komicxx . . $ GameData#komi., black_komi);
745 /* Dead stones are included in IGS message captures */
746 if(black_player ==cxx . . $ `operator==`(5bc2975d2d751687). gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. &&
747 white_player ==cxx . . $ `operator==`(5bc2975d2d751687). gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. &&
748 /*black_captures == gameData->black_prisoners &&
749 white_captures == gameData->white_prisoners &&*/
750 white_komi == gameDatacxx . . $ BoardDispatch#gameData.->komicxx . . $ GameData#komi.)
751 return 1;
752 else
753 return 0;
754 }
755
756 bool BoardDispatchcxx . . $ BoardDispatch#::isOpponentBoardcxx . . $ BoardDispatch#isOpponentBoard(80825a4bb658cac2).(QStringcxx . . $ QString# us, QStringcxx . . $ QString# them)
757 {
758 if(!gameDatacxx . . $ BoardDispatch#gameData.)
759 return 0;
760 if((gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. ==cxx . . $ `operator==`(5bc2975d2d751687). us && gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). them) || (gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). us && gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. ==cxx . . $ `operator==`(5bc2975d2d751687). them))
761 return 1;
762 else if(them ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "" && (gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. ==cxx . . $ `operator==`(5bc2975d2d751687). us || gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). us))
763 return 1;
764 else
765 return 0;
766 }
767
768 void BoardDispatchcxx . . $ BoardDispatch#::swapColorscxx . . $ BoardDispatch#swapColors(b45ddcbc8423892c).(bool noswap)
769 {
770 boardwindowcxx . . $ BoardDispatch#boardwindow.->swapColorscxx . . $ BoardWindow#swapColors(b45ddcbc8423892c).(noswap);
771 }
772
773 void BoardDispatchcxx . . $ BoardDispatch#::requestGameInfocxx . . $ BoardDispatch#requestGameInfo(49f6e7a06ebc5aa8).(void)
774 {
775 connectioncxx . . $ BoardDispatch#connection.->requestGameInfocxx . . $ NetworkConnection#requestGameInfo(cb2f890c2fdad230).(gameDatacxx . . $ BoardDispatch#gameData.->numbercxx . . $ GameData#number.);
776 }
777
778 GameDatacxx . . $ GameData# * BoardDispatchcxx . . $ BoardDispatch#::getGameDatacxx . . $ BoardDispatch#getGameData(f917540193955ea7).(void)
779 {
780 return gameDatacxx . . $ BoardDispatch#gameData.;
781 }
782
783 /* We're getting this associated with sendKeepAlives and
784 * possibly rematches. We shouldn't need to check for
785 * boardwindow. FIXME */
786 TimeRecordcxx . . $ TimeRecord# BoardDispatchcxx . . $ BoardDispatch#::getOurTimeRecordcxx . . $ BoardDispatch#getOurTimeRecord(3d89b73610291578).(void)
787 {
788 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
789 return boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->getOurTimeRecordcxx . . $ qGoBoard#getOurTimeRecord(3d89b73610291578).();
790 else
791 return TimeRecordcxx . . $ TimeRecord#TimeRecord(49f6e7a06ebc5aa8).();
792 }
793
794 TimeRecordcxx . . $ TimeRecord# BoardDispatchcxx . . $ BoardDispatch#::getTheirTimeRecordcxx . . $ BoardDispatch#getTheirTimeRecord(3d89b73610291578).(void)
795 {
796 if(boardwindowcxx . . $ BoardDispatch#boardwindow.)
797 return boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->getTheirTimeRecordcxx . . $ qGoBoard#getTheirTimeRecord(3d89b73610291578).();
798 else
799 return TimeRecordcxx . . $ TimeRecord#TimeRecord(49f6e7a06ebc5aa8).();
800 }
801
802 QStringcxx . . $ QString# BoardDispatchcxx . . $ BoardDispatch#::getOpponentNamecxx . . $ BoardDispatch#getOpponentName(4365c3963150523e).(void)
803 {
804 if(!gameDatacxx . . $ BoardDispatch#gameData.)
805 return QStringcxx . . $ QString#QString(ced63f7c635d850d).();
806 if(gameDatacxx . . $ BoardDispatch#gameData.->black_namecxx . . $ GameData#black_name. ==cxx . . $ `operator==`(5bc2975d2d751687). getUsernamecxx . . $ BoardDispatch#getUsername(4365c3963150523e).())
807 return gameDatacxx . . $ QString#QString(132dd6869045752b).->white_namecxx . . $ GameData#white_name.;
808 else if(gameDatacxx . . $ BoardDispatch#gameData.->white_namecxx . . $ GameData#white_name. ==cxx . . $ `operator==`(5bc2975d2d751687). getUsernamecxx . . $ BoardDispatch#getUsername(4365c3963150523e).())
809 return gameDatacxx . . $ QString#QString(132dd6869045752b).->black_namecxx . . $ GameData#black_name.;
810 else
811 return QStringcxx . . $ QString#QString(ced63f7c635d850d).();
812 }
813
814 QStringcxx . . $ QString# BoardDispatchcxx . . $ BoardDispatch#::getUsernamecxx . . $ BoardDispatch#getUsername(4365c3963150523e).(void) { return connectioncxx . . $ QString#QString(132dd6869045752b).->getUsernamecxx . . $ NetworkConnection#getUsername(a2fb7a6ce195d51).(); }
815
816 QStringcxx . . $ QString# BoardDispatchcxx . . $ BoardDispatch#::getOurRankcxx . . $ BoardDispatch#getOurRank(4365c3963150523e).(void)
817 {
818 return connectioncxx . . $ QString#QString(132dd6869045752b).->getOurListingcxx . . $ NetworkConnection#getOurListing(c84291d55c8466c6).()->rankcxx . . $ PlayerListing#rank.;
819 }
820
821 bool BoardDispatchcxx . . $ BoardDispatch#::getBlackTurncxx . . $ BoardDispatch#getBlackTurn(c9857a73d68e59ba).(void)
822 {
823 if(boardwindowcxx . . $ BoardDispatch#boardwindow. && boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.)
824 return boardwindowcxx . . $ BoardDispatch#boardwindow.->qgoboardcxx . . $ BoardWindow#qgoboard.->getBlackTurncxx . . $ qGoBoard#getBlackTurn(efaadfb7dc14930a).();
825 return false;
826 }
827
828 class ObserverListModelcxx . . $ ObserverListModel# * BoardDispatchcxx . . $ BoardDispatch#::getObserverListModelForRematchcxx . . $ BoardDispatch#getObserverListModelForRematch(ac139ea84b69b4da).(void)
829 {
830 class ObserverListModelcxx . . $ ObserverListModel# * olm = observerListModelcxx . . $ BoardDispatch#observerListModel.;
831 observerListModelcxx . . $ BoardDispatch#observerListModel. = 0;
832 return olm;
833 }
834
835 void BoardDispatchcxx . . $ BoardDispatch#::setObserverListModelcxx . . $ BoardDispatch#setObserverListModel(a089598c119048f6).(class ObserverListModelcxx . . $ ObserverListModel# * olm)
836 {
837 if(observerListModelcxx . . $ BoardDispatch#observerListModel.)
838 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("warning: observer list model already set! overwriting");
839 observerListModelcxx . . $ BoardDispatch#observerListModel. = olm;
840 }
841
842 bool BoardDispatchcxx . . $ BoardDispatch#::supportsRematchcxx . . $ BoardDispatch#supportsRematch(c9857a73d68e59ba).(void)
843 {
844 /* A little tricky to have this check here but... */
845 if(!gameDatacxx . . $ BoardDispatch#gameData. || gameDatacxx . . $ BoardDispatch#gameData.->gameModecxx . . $ GameData#gameMode. != modeMatchcxx . . $ modeMatch.)
846 return false;
847 if(connectioncxx . . $ BoardDispatch#connection.)
848 return connectioncxx . . $ BoardDispatch#connection.->supportsRematchcxx . . $ NetworkConnection#supportsRematch(c9857a73d68e59ba).();
849 return false;
850 }
851
852 bool BoardDispatchcxx . . $ BoardDispatch#::flipCoordscxx . . $ BoardDispatch#flipCoords(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->flipCoordscxx . . $ NetworkConnection#flipCoords(c9857a73d68e59ba).(); }
853 bool BoardDispatchcxx . . $ BoardDispatch#::supportsRequestMatchModecxx . . $ BoardDispatch#supportsRequestMatchMode(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->supportsRequestMatchModecxx . . $ NetworkConnection#supportsRequestMatchMode(c9857a73d68e59ba).(); };
854 bool BoardDispatchcxx . . $ BoardDispatch#::supportsRequestCountcxx . . $ BoardDispatch#supportsRequestCount(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->supportsRequestCountcxx . . $ NetworkConnection#supportsRequestCount(c9857a73d68e59ba).(); };
855 bool BoardDispatchcxx . . $ BoardDispatch#::supportsRequestDrawcxx . . $ BoardDispatch#supportsRequestDraw(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->supportsRequestDrawcxx . . $ NetworkConnection#supportsRequestDraw(c9857a73d68e59ba).(); };
856 bool BoardDispatchcxx . . $ BoardDispatch#::supportsRequestAdjourncxx . . $ BoardDispatch#supportsRequestAdjourn(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->supportsRequestAdjourncxx . . $ NetworkConnection#supportsRequestAdjourn(c9857a73d68e59ba).(); };
857 bool BoardDispatchcxx . . $ BoardDispatch#::supportsAddTimecxx . . $ BoardDispatch#supportsAddTime(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->supportsAddTimecxx . . $ NetworkConnection#supportsAddTime(c9857a73d68e59ba).(); };
858 bool BoardDispatchcxx . . $ BoardDispatch#::undoResetsScorecxx . . $ BoardDispatch#undoResetsScore(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->undoResetsScorecxx . . $ NetworkConnection#undoResetsScore(c9857a73d68e59ba).(); }
859 bool BoardDispatchcxx . . $ BoardDispatch#::canMarkStonesDeadinScorecxx . . $ BoardDispatch#canMarkStonesDeadinScore(c9857a73d68e59ba).(void) { return connectioncxx . . $ BoardDispatch#connection.->canMarkStonesDeadinScorecxx . . $ NetworkConnection#canMarkStonesDeadinScore(c9857a73d68e59ba).(); }