Debian Codegraph @

src/gamedata.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 GAMEDATA_H
24 #define GAMEDATA_Hcxx . . $ `src/gamedata.h:24:9`!
25
26 #include <QString>
27 #include "defines.h"cxx . . $ `<file>/src/defines.h`/
28 class GameResultcxx . . $ GameResult#;
29
30 class GameDatacxx . . $ GameData#
31 {
32 public:
33 GameDatacxx . . $ GameData#GameData(49f6e7a06ebc5aa8).() :
34 white_namecxx . . $ GameData#white_name.(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("White")),
35 black_namecxx . . $ GameData#black_name.(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Black")),
36 white_rankcxx . . $ GameData#white_rank.(""),
37 black_rankcxx . . $ QString#QString(85c52e162fed56f9).(""),
38 numbercxx . . $ GameData#number.(0),
39 movescxx . . $ GameData#moves.(0),
40 board_sizecxx . . $ GameData#board_size.(19),
41 handicapcxx . . $ GameData#handicap.(0),
42 komicxx . . $ GameData#komi.(5.5),
43 timeSystemcxx . . $ GameData#timeSystem.(canadiancxx . . $ canadian.),
44 timelimitcxx . . $ GameData#timelimit.(0),
45 maintimecxx . . $ GameData#maintime.(0),
46 periodtimecxx . . $ GameData#periodtime.(0),
47 stones_periodscxx . . $ GameData#stones_periods.(0),
48 white_prisonerscxx . . $ GameData#white_prisoners.(0),
49 black_prisonerscxx . . $ GameData#black_prisoners.(0),
50 resultcxx . . $ GameData#result.(""),
51 fullresultcxx . . $ GameData#fullresult.(0),
52 gameModecxx . . $ GameData#gameMode.(modeUndefinedcxx . . $ modeUndefined.),
53 game_codecxx . . $ GameData#game_code.(0),
54 nigiriToBeSettledcxx . . $ GameData#nigiriToBeSettled.(false),
55 undoAllowedcxx . . $ GameData#undoAllowed.(false),
56 oneColorGocxx . . $ GameData#oneColorGo.(false),
57 stylecxx . . $ GameData#style.(1),
58 datecxx . . $ QString#QString(85c52e162fed56f9).(""),
59 placecxx . . $ GameData#place.(""),
60 copyrightcxx . . $ QString#QString(85c52e162fed56f9).(""),
61 codeccxx . . $ QString#QString(85c52e162fed56f9).(""),
62 gameNamecxx . . $ GameData#gameName.(""),
63 fileNamecxx . . $ GameData#fileName.(""),
64 overtimecxx . . $ GameData#overtime.(""),
65 free_ratedcxx . . $ GameData#free_rated.(noREQcxx . . $ noREQ.),
66 move_list_receivedcxx . . $ GameData#move_list_received.(false),
67 white_first_flagcxx . . $ GameData#white_first_flag.(false),
68 our_invitationcxx . . $ GameData#our_invitation.(false),
69 opponentdropcountcxx . . $ GameData#opponentdropcount.(0),
70 record_sgfcxx . . $ GameData#record_sgf.("") {};
71 GameDatacxx . . $ GameData#GameData(53acbc9cc3152f0d).(GameDatacxx . . $ GameData# *d)
72 {
73 if (d)
74 {
75 white_namecxx . . $ GameData#white_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->white_namecxx . . $ GameData#white_name.;
76 black_namecxx . . $ GameData#black_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->black_namecxx . . $ GameData#black_name.;
77 white_rankcxx . . $ GameData#white_rank. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->white_rankcxx . . $ GameData#white_rank.;
78 black_rankcxx . . $ GameData#black_rank. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->black_rankcxx . . $ GameData#black_rank.;
79 movescxx . . $ GameData#moves. = d->movescxx . . $ GameData#moves.;
80 resultcxx . . $ GameData#result. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->resultcxx . . $ GameData#result.;
81 fullresultcxx . . $ GameData#fullresult. = d->fullresultcxx . . $ GameData#fullresult.;
82 datecxx . . $ GameData#date. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->datecxx . . $ GameData#date.;
83 placecxx . . $ GameData#place. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->placecxx . . $ GameData#place.;
84 copyrightcxx . . $ GameData#copyright. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->copyrightcxx . . $ GameData#copyright.;
85 codeccxx . . $ GameData#codec. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->codeccxx . . $ GameData#codec.;
86 gameNamecxx . . $ GameData#gameName. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->gameNamecxx . . $ GameData#gameName.;
87 fileNamecxx . . $ GameData#fileName. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->fileNamecxx . . $ GameData#fileName.;
88 overtimecxx . . $ GameData#overtime. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->overtimecxx . . $ GameData#overtime.;
89 board_sizecxx . . $ GameData#board_size. = d->board_sizecxx . . $ GameData#board_size.;
90 handicapcxx . . $ GameData#handicap. = d->handicapcxx . . $ GameData#handicap.;
91 numbercxx . . $ GameData#number. = d->numbercxx . . $ GameData#number.;
92 timelimitcxx . . $ GameData#timelimit. = d->timelimitcxx . . $ GameData#timelimit.;
93 stylecxx . . $ GameData#style. = d->stylecxx . . $ GameData#style.;
94 komicxx . . $ GameData#komi. = d->komicxx . . $ GameData#komi.;
95 free_ratedcxx . . $ GameData#free_rated. = d->free_ratedcxx . . $ GameData#free_rated.;
96 timeSystemcxx . . $ GameData#timeSystem. = d->timeSystemcxx . . $ GameData#timeSystem.;
97 oneColorGocxx . . $ GameData#oneColorGo. = d->oneColorGocxx . . $ GameData#oneColorGo.;
98 maintimecxx . . $ GameData#maintime. = d->maintimecxx . . $ GameData#maintime.;
99 stones_periodscxx . . $ GameData#stones_periods. = d->stones_periodscxx . . $ GameData#stones_periods.;
100 periodtimecxx . . $ GameData#periodtime. = d->periodtimecxx . . $ GameData#periodtime.;
101 white_prisonerscxx . . $ GameData#white_prisoners. = d->white_prisonerscxx . . $ GameData#white_prisoners.;
102 black_prisonerscxx . . $ GameData#black_prisoners. = d->black_prisonerscxx . . $ GameData#black_prisoners.;
103 nigiriToBeSettledcxx . . $ GameData#nigiriToBeSettled. = d->nigiriToBeSettledcxx . . $ GameData#nigiriToBeSettled.;
104 undoAllowedcxx . . $ GameData#undoAllowed. = d->undoAllowedcxx . . $ GameData#undoAllowed.;
105 move_list_receivedcxx . . $ GameData#move_list_received. = d->move_list_receivedcxx . . $ GameData#move_list_received.;
106 white_first_flagcxx . . $ GameData#white_first_flag. = d->white_first_flagcxx . . $ GameData#white_first_flag.;
107 our_invitationcxx . . $ GameData#our_invitation. = d->our_invitationcxx . . $ GameData#our_invitation.;
108 opponentdropcountcxx . . $ GameData#opponentdropcount. = d->opponentdropcountcxx . . $ GameData#opponentdropcount.;
109 game_codecxx . . $ GameData#game_code. = d->game_codecxx . . $ GameData#game_code.;
110 gameModecxx . . $ GameData#gameMode. = d->gameModecxx . . $ GameData#gameMode.;
111 record_sgfcxx . . $ GameData#record_sgf. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). d->record_sgfcxx . . $ GameData#record_sgf.;
112 }
113 }
114
115 ~cxx . . $ GameData#`~GameData`(ced63f7c635d850d).GameDatacxx . . $ GameData#() {};
116
117 QStringcxx . . $ QString# white_namecxx . . $ GameData#white_name.;
118 QStringcxx . . $ QString# black_namecxx . . $ GameData#black_name.;
119 QStringcxx . . $ QString# white_rankcxx . . $ GameData#white_rank.;
120 QStringcxx . . $ QString# black_rankcxx . . $ GameData#black_rank.;
121
122 bool runningcxx . . $ GameData#running.;
123 unsigned int numbercxx . . $ GameData#number.;
124 unsigned int movescxx . . $ GameData#moves.;
125 unsigned int board_sizecxx . . $ GameData#board_size.;
126 unsigned int handicapcxx . . $ GameData#handicap.;
127 float komicxx . . $ GameData#komi.;
128
129 unsigned int observerscxx . . $ GameData#observers.;
130
131 TimeSystemcxx . . $ TimeSystem# timeSystemcxx . . $ GameData#timeSystem.;
132 int timelimitcxx . . $ GameData#timelimit.; //what is this?
133 int maintimecxx . . $ GameData#maintime., periodtimecxx . . $ GameData#periodtime., stones_periodscxx . . $ GameData#stones_periods.;
134 unsigned int white_prisonerscxx . . $ GameData#white_prisoners.;
135 unsigned int white_stonescxx . . $ GameData#white_stones.;
136 QStringcxx . . $ QString# white_timecxx . . $ GameData#white_time.;
137 unsigned int black_prisonerscxx . . $ GameData#black_prisoners.;
138 unsigned int black_stonescxx . . $ GameData#black_stones.;
139 QStringcxx . . $ QString# black_timecxx . . $ GameData#black_time.;
140
141 QStringcxx . . $ QString# resultcxx . . $ GameData#result.;
142 GameResultcxx . . $ GameResult# * fullresultcxx . . $ GameData#fullresult.;
143 //enum GameType { UNKNOWN, TEACHING, FREE, RANKED, DEMONSTRATION } gameType;
144 QStringcxx . . $ QString# Bycxx . . $ GameData#By.; //these two need to be changed somehow
145 QStringcxx . . $ QString# FRcxx . . $ GameData#FR.;
146 GameModecxx . . $ GameMode# gameModecxx . . $ GameData#gameMode.;
147
148 unsigned short game_codecxx . . $ GameData#game_code.;
149 unsigned short opponent_idcxx . . $ GameData#opponent_id.;
150
151 bool nigiriToBeSettledcxx . . $ GameData#nigiriToBeSettled.;
152 bool undoAllowedcxx . . $ GameData#undoAllowed.;
153 bool oneColorGocxx . . $ GameData#oneColorGo.;
154 int stylecxx . . $ GameData#style.;
155 QStringcxx . . $ QString# datecxx . . $ GameData#date., placecxx . . $ GameData#place., copyrightcxx . . $ GameData#copyright., codeccxx . . $ GameData#codec., gameNamecxx . . $ GameData#gameName., fileNamecxx . . $ GameData#fileName., overtimecxx . . $ GameData#overtime.;
156 assessTypecxx . . $ assessType# free_ratedcxx . . $ GameData#free_rated.;
157 /* We can receive moves in an observed IGS game before receiving
158 * the board state. But there's another issue with observing
159 * multiple games that might suggest some other kind of fix */
160 bool move_list_receivedcxx . . $ GameData#move_list_received.;
161 //for tygem, I would love to remove but I think we need it
162 //for time messages and I don't want to pick it off
163 //the listing since that's possibly less reliable:
164 bool white_first_flagcxx . . $ GameData#white_first_flag.;
165 // apparently we also need this, we might later try to simplify this
166 // or take the one off...
167 bool our_invitationcxx . . $ GameData#our_invitation.;
168 unsigned int opponentdropcountcxx . . $ GameData#opponentdropcount.;
169 QStringcxx . . $ QString# record_sgfcxx . . $ GameData#record_sgf.;
170 };
171
172
173 #endif //GAMEDATA_H