Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Bovo
Commits
648e605b
Commit
648e605b
authored
Dec 16, 2021
by
Laurent Montel
😁
Browse files
Use override
parent
d98f7cb8
Pipeline
#110814
failed with stage
in 2 minutes and 9 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ai/aron/aiaron.h
View file @
648e605b
...
...
@@ -43,13 +43,13 @@ class AiAron : public Ai
public:
explicit
AiAron
(
const
Dimension
&
dimension
,
KgDifficultyLevel
::
StandardLevel
skill
,
Player
player
);
~
AiAron
()
override
;
void
cancelAndWait
()
Q_DECL_OVERRIDE
;
void
cancelAndWait
()
override
;
public
Q_SLOTS
:
void
changeBoard
(
const
Move
&
move
)
Q_DECL_OVERRIDE
;
void
gameOver
()
Q_DECL_OVERRIDE
;
void
setSkill
(
KgDifficultyLevel
::
StandardLevel
skill
)
Q_DECL_OVERRIDE
;
void
slotMove
()
Q_DECL_OVERRIDE
;
void
changeBoard
(
const
Move
&
move
)
override
;
void
gameOver
()
override
;
void
setSkill
(
KgDifficultyLevel
::
StandardLevel
skill
)
override
;
void
slotMove
()
override
;
Q_SIGNALS:
void
move
(
const
Move
&
move
);
...
...
ai/gabor/aigabor.h
View file @
648e605b
...
...
@@ -44,14 +44,14 @@ class AiGabor : public Ai, public AiTimeOver
public:
explicit
AiGabor
(
const
Dimension
&
dimension
,
KgDifficultyLevel
::
StandardLevel
skill
,
Player
player
);
~
AiGabor
()
override
;
void
cancelAndWait
()
Q_DECL_OVERRIDE
;
bool
isTimeOver
()
Q_DECL_OVERRIDE
;
void
cancelAndWait
()
override
;
bool
isTimeOver
()
override
;
public
Q_SLOTS
:
void
changeBoard
(
const
Move
&
move
)
Q_DECL_OVERRIDE
;
void
gameOver
()
Q_DECL_OVERRIDE
;
void
setSkill
(
KgDifficultyLevel
::
StandardLevel
skill
)
Q_DECL_OVERRIDE
;
void
slotMove
()
Q_DECL_OVERRIDE
;
void
changeBoard
(
const
Move
&
move
)
override
;
void
gameOver
()
override
;
void
setSkill
(
KgDifficultyLevel
::
StandardLevel
skill
)
override
;
void
slotMove
()
override
;
Q_SIGNALS:
void
move
(
const
Move
&
move
);
...
...
gui/hintitem.h
View file @
648e605b
...
...
@@ -47,7 +47,7 @@ public:
void
killAnimation
();
void
kill
();
void
setFill
(
qreal
fill
);
QRectF
boundingRect
()
const
Q_DECL_OVERRIDE
;
QRectF
boundingRect
()
const
override
;
public
Q_SLOTS
:
void
tick
();
...
...
@@ -57,7 +57,7 @@ Q_SIGNALS:
void
killed
();
protected:
void
paint
(
QPainter
*
p
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
widget
=
nullptr
)
Q_DECL_OVERRIDE
;
void
paint
(
QPainter
*
p
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
widget
=
nullptr
)
override
;
private:
Scene
*
m_scene
;
...
...
gui/mark.h
View file @
648e605b
...
...
@@ -51,7 +51,7 @@ public:
usi
row
()
const
;
usi
col
()
const
;
void
setFill
(
qreal
fill
);
QRectF
boundingRect
()
const
Q_DECL_OVERRIDE
;
QRectF
boundingRect
()
const
override
;
public
Q_SLOTS
:
void
tick
();
...
...
@@ -61,7 +61,7 @@ Q_SIGNALS:
void
killed
(
Mark
*
thisMark
);
protected:
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
widget
=
nullptr
)
Q_DECL_OVERRIDE
;
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
widget
=
nullptr
)
override
;
private:
Scene
*
m_scene
;
...
...
gui/scene.h
View file @
648e605b
...
...
@@ -74,16 +74,16 @@ public Q_SLOTS:
void
killMark
(
Mark
*
);
protected:
bool
event
(
QEvent
*
event
)
Q_DECL_OVERRIDE
;
bool
event
(
QEvent
*
event
)
override
;
Q_SIGNALS:
void
move
(
const
Move
&
);
private:
void
drawBackground
(
QPainter
*
p
,
const
QRectF
&
rect
)
Q_DECL_OVERRIDE
;
void
drawForeground
(
QPainter
*
p
,
const
QRectF
&
rect
)
Q_DECL_OVERRIDE
;
void
mousePressEvent
(
QGraphicsSceneMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseMoveEvent
(
QGraphicsSceneMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
drawBackground
(
QPainter
*
p
,
const
QRectF
&
rect
)
override
;
void
drawForeground
(
QPainter
*
p
,
const
QRectF
&
rect
)
override
;
void
mousePressEvent
(
QGraphicsSceneMouseEvent
*
)
override
;
void
mouseMoveEvent
(
QGraphicsSceneMouseEvent
*
)
override
;
void
killAnimations
();
bool
m_activate
;
Game
*
m_game
;
...
...
gui/view.h
View file @
648e605b
...
...
@@ -36,8 +36,8 @@ public:
View
(
Scene
*
scene
,
const
QColor
&
bgColor
,
QWidget
*
parent
);
private:
void
resizeEvent
(
QResizeEvent
*
)
Q_DECL_OVERRIDE
;
QSize
sizeHint
()
const
Q_DECL_OVERRIDE
;
void
resizeEvent
(
QResizeEvent
*
)
override
;
QSize
sizeHint
()
const
override
;
Scene
*
m_scene
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment