Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KReversi
Commits
c1ed1bfd
Commit
c1ed1bfd
authored
Jan 11, 2019
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consti'fy
parent
fc5b18af
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
kreversicomputerplayer.cpp
kreversicomputerplayer.cpp
+1
-1
kreversicomputerplayer.h
kreversicomputerplayer.h
+1
-1
kreversiplayer.cpp
kreversiplayer.cpp
+1
-1
kreversiplayer.h
kreversiplayer.h
+1
-1
mainwindow.cpp
mainwindow.cpp
+1
-1
mainwindow.h
mainwindow.h
+1
-1
No files found.
kreversicomputerplayer.cpp
View file @
c1ed1bfd
...
...
@@ -23,7 +23,7 @@
#include "kreversicomputerplayer.h"
KReversiComputerPlayer
::
KReversiComputerPlayer
(
ChipColor
color
,
QString
name
)
:
KReversiComputerPlayer
::
KReversiComputerPlayer
(
ChipColor
color
,
const
QString
&
name
)
:
KReversiPlayer
(
color
,
name
,
false
,
false
),
m_lowestSkill
(
100
)
// setting it big enough
{
m_engine
=
new
Engine
(
1
);
...
...
kreversicomputerplayer.h
View file @
c1ed1bfd
...
...
@@ -38,7 +38,7 @@ public:
/**
* Constructs AI player of specified @p color and @p name
*/
explicit
KReversiComputerPlayer
(
ChipColor
color
,
QString
name
);
explicit
KReversiComputerPlayer
(
ChipColor
color
,
const
QString
&
name
);
~
KReversiComputerPlayer
();
/**
...
...
kreversiplayer.cpp
View file @
c1ed1bfd
...
...
@@ -23,7 +23,7 @@
#include "kreversiplayer.h"
KReversiPlayer
::
KReversiPlayer
(
ChipColor
color
,
QString
name
,
KReversiPlayer
::
KReversiPlayer
(
ChipColor
color
,
const
QString
&
name
,
bool
hintAllowed
,
bool
undoAllowed
)
:
m_state
(
UNKNOWN
),
m_color
(
color
),
m_name
(
name
),
m_hintAllowed
(
hintAllowed
),
m_hintCount
(
0
),
m_undoAllowed
(
undoAllowed
),
...
...
kreversiplayer.h
View file @
c1ed1bfd
...
...
@@ -52,7 +52,7 @@ public:
* @param hintAllowed determines whether hints are allowed for player
* @param undoAllowed determines whether undos are allowed for player
*/
explicit
KReversiPlayer
(
ChipColor
color
,
QString
name
,
explicit
KReversiPlayer
(
ChipColor
color
,
const
QString
&
name
,
bool
hintAllowed
,
bool
undoAllowed
);
/**
...
...
mainwindow.cpp
View file @
c1ed1bfd
...
...
@@ -396,7 +396,7 @@ void KReversiMainWindow::clearPlayers()
}
}
void
KReversiMainWindow
::
receivedGameStartInformation
(
GameStartInformation
info
)
void
KReversiMainWindow
::
receivedGameStartInformation
(
const
GameStartInformation
&
info
)
{
clearPlayers
();
m_nowPlayingInfo
=
info
;
...
...
mainwindow.h
View file @
c1ed1bfd
...
...
@@ -72,7 +72,7 @@ private:
void
updateHistory
();
void
startDemo
();
void
clearPlayers
();
void
receivedGameStartInformation
(
GameStartInformation
info
);
void
receivedGameStartInformation
(
const
GameStartInformation
&
info
);
KReversiPlayer
*
m_player
[
2
];
StartGameDialog
*
m_startDialog
;
...
...
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