Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KShisen
Commits
2c14ee16
Commit
2c14ee16
authored
May 17, 2016
by
Frederik Schwarzer
Browse files
Remove assignment operator on initialisation.
parent
52928603
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/board.cpp
View file @
2c14ee16
...
...
@@ -45,9 +45,9 @@ namespace KShisen
#define SEASONS_START 28
#define FLOWERS_START 39
static
std
::
array
<
int
,
5
>
const
s_delay
=
{{
1000
,
750
,
500
,
250
,
125
}};
static
std
::
array
<
int
,
6
>
const
s_sizeX
=
{{
14
,
16
,
18
,
24
,
26
,
30
}};
static
std
::
array
<
int
,
6
>
const
s_sizeY
=
{{
6
,
9
,
8
,
12
,
14
,
16
}};
static
std
::
array
<
int
,
5
>
const
s_delay
{{
1000
,
750
,
500
,
250
,
125
}};
static
std
::
array
<
int
,
6
>
const
s_sizeX
{{
14
,
16
,
18
,
24
,
26
,
30
}};
static
std
::
array
<
int
,
6
>
const
s_sizeY
{{
6
,
9
,
8
,
12
,
14
,
16
}};
Board
::
Board
(
QWidget
*
parent
)
:
QWidget
(
parent
)
...
...
@@ -226,7 +226,7 @@ void Board::applyGravity(TilePos const tilePos1, TilePos const tilePos2)
// column twice but all ideas I had to prevent that from happening seemed
// more complex that living with that second iteration once in a while.
// Maybe later ... (schwarzer)
std
::
array
<
int
,
2
>
const
affectedColumns
=
{{
tilePos1
.
x
(),
tilePos2
.
x
()}};
std
::
array
<
int
,
2
>
const
affectedColumns
{{
tilePos1
.
x
(),
tilePos2
.
x
()}};
for
(
auto
const
column
:
affectedColumns
)
{
auto
rptr
=
yTiles
()
-
1
;
auto
wptr
=
yTiles
()
-
1
;
...
...
@@ -1199,8 +1199,8 @@ int Board::findPath(TilePos const & tilePos1, TilePos const & tilePos2, Possible
}
// Find paths of 3 segments
std
::
array
<
int
,
4
>
const
dx
=
{{
1
,
0
,
-
1
,
0
}};
std
::
array
<
int
,
4
>
const
dy
=
{{
0
,
1
,
0
,
-
1
}};
std
::
array
<
int
,
4
>
const
dx
{{
1
,
0
,
-
1
,
0
}};
std
::
array
<
int
,
4
>
const
dy
{{
0
,
1
,
0
,
-
1
}};
for
(
auto
i
=
0
;
i
<
4
;
++
i
)
{
auto
tempX
=
tilePos1
.
x
()
+
dx
.
at
(
i
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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