Debian Codegraph @

src/board/stone.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 STONE_H
24 #define STONE_Hcxx . . $ `src/board/stone.h:24:9`!
25
26 #include "graphicsitemstypes.h"cxx . . $ `<file>/src/board/graphicsitemstypes.h`/
27
28 #include <QGraphicsItem>
29 #include <QtCore>
30
31 class Stonecxx . . $ Stone# : public QGraphicsPixmapItemcxx . . $ QGraphicsPixmapItem#
32 {
33 public:
34 Stonecxx . . $ Stone#Stone(72804590282d8142).(QListcxx . . $ QList#<QPixmapcxx . . $ QPixmap#> *a, QGraphicsScenecxx . . $ QGraphicsScene# *canvas, StoneColorcxx . . $ StoneColor# c, int x, int y, bool has_shadow=false);
35 ~cxx . . $ Stone#`~Stone`(ced63f7c635d850d).Stonecxx . . $ Stone#() ;
36
37 StoneColorcxx . . $ StoneColor# getColorcxx . . $ Stone#getColor(6680c74b05d375a4).() const { return colorcxx . . $ Stone#color.; }
38 void setColorcxx . . $ Stone#setColor(42096433316d3db3).(StoneColorcxx . . $ StoneColor# c=stoneBlackcxx . . $ stoneBlack.);
39 void toggleOneColorGocxx . . $ Stone#toggleOneColorGo(b45ddcbc8423892c).(bool oneColor) ;
40 int typecxx . . $ Stone#type(455f465bc33b4cdf).() const { return RTTI_STONEcxx . . $ `board/graphicsitemstypes.h:25:9`!; }
41 int posXcxx . . $ Stone#posX(455f465bc33b4cdf).() const { return myXcxx . . $ Stone#myX.; }
42 int posYcxx . . $ Stone#posY(455f465bc33b4cdf).() const { return myYcxx . . $ Stone#myY.; }
43 QGraphicsSimpleTextItemcxx . . $ QGraphicsSimpleTextItem# * getNumcxx . . $ Stone#getNum(c6d7187dafd5c0dc).() {return moveNumcxx . . $ Stone#moveNum.;}
44 void setCoordcxx . . $ Stone#setCoord(3e454b8ccf442868).(int x, int y) { myXcxx . . $ Stone#myX. = x; myYcxx . . $ Stone#myY. = y; }
45 void togglePixmapcxx . . $ Stone#togglePixmap(45848267e7fc80b8).(QListcxx . . $ QList#<QPixmapcxx . . $ QPixmap#> *a, bool showShadow = true);
46
47 bool isDeadcxx . . $ Stone#isDead(50ce9a9e25b4a850).() const { return deadcxx . . $ Stone#dead.; }
48 void setDeadcxx . . $ Stone#setDead(b45ddcbc8423892c).(bool b=true) { deadcxx . . $ Stone#dead. = b; sekicxx . . $ Stone#seki. = false;}
49 bool isSekicxx . . $ Stone#isSeki(50ce9a9e25b4a850).() const { return sekicxx . . $ Stone#seki.; }
50 void setSekicxx . . $ Stone#setSeki(b45ddcbc8423892c).(bool b=true) { sekicxx . . $ Stone#seki. = b; deadcxx . . $ Stone#dead. = false; }
51
52 void setPoscxx . . $ Stone#setPos(bc12c9ec15586e6a).(double x, double y);
53 void showcxx . . $ Stone#show(49f6e7a06ebc5aa8).();
54 void hidecxx . . $ Stone#hide(49f6e7a06ebc5aa8).();
55
56 bool checkedcxx . . $ Stone#checked.;
57
58
59
60 private:
61 StoneColorcxx . . $ StoneColor# colorcxx . . $ Stone#color.;
62 int myXcxx . . $ Stone#myX., myYcxx . . $ Stone#myY.;
63 bool deadcxx . . $ Stone#dead., sekicxx . . $ Stone#seki.;
64 QListcxx . . $ QList#<QPixmapcxx . . $ QPixmap#> *pixmapListcxx . . $ Stone#pixmapList.;
65 QGraphicsSimpleTextItemcxx . . $ QGraphicsSimpleTextItem# *moveNumcxx . . $ Stone#moveNum.;
66 QGraphicsPixmapItemcxx . . $ QGraphicsPixmapItem# *shadowcxx . . $ Stone#shadow.;
67 };
68
69 #endif