Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baichixing
ygopro
Commits
62fe61c7
Commit
62fe61c7
authored
Dec 27, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update aggregate initialization
parent
34376c88
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
gframe/client_card.h
gframe/client_card.h
+6
-6
gframe/client_field.h
gframe/client_field.h
+2
-2
gframe/game.h
gframe/game.h
+9
-9
gframe/single_duel.h
gframe/single_duel.h
+7
-7
No files found.
gframe/client_card.h
View file @
62fe61c7
...
...
@@ -92,12 +92,12 @@ public:
std
::
set
<
ClientCard
*>
ownerTarget
;
std
::
map
<
int
,
int
>
counters
;
std
::
map
<
int
,
int
>
desc_hints
;
wchar_t
atkstring
[
16
]{
0
};
wchar_t
defstring
[
16
]{
0
};
wchar_t
lvstring
[
16
]{
0
};
wchar_t
linkstring
[
16
]{
0
};
wchar_t
lscstring
[
16
]{
0
};
wchar_t
rscstring
[
16
]{
0
};
wchar_t
atkstring
[
16
]{};
wchar_t
defstring
[
16
]{};
wchar_t
lvstring
[
16
]{};
wchar_t
linkstring
[
16
]{};
wchar_t
lscstring
[
16
]{};
wchar_t
rscstring
[
16
]{};
ClientCard
()
=
default
;
~
ClientCard
();
...
...
gframe/client_field.h
View file @
62fe61c7
...
...
@@ -46,7 +46,7 @@ public:
std
::
vector
<
int
>
select_options
;
std
::
vector
<
int
>
select_options_index
;
std
::
vector
<
ChainInfo
>
chains
;
int
extra_p_count
[
2
]{
0
};
int
extra_p_count
[
2
]{};
size_t
selected_option
{
0
};
ClientCard
*
attacker
{
nullptr
};
...
...
@@ -77,7 +77,7 @@ public:
bool
remove_act
{
false
};
bool
deck_act
{
false
};
bool
extra_act
{
false
};
bool
pzone_act
[
2
]{
false
};
bool
pzone_act
[
2
]{};
bool
conti_act
{
false
};
bool
chain_forced
{
false
};
ChainInfo
current_chain
;
...
...
gframe/game.h
View file @
62fe61c7
...
...
@@ -74,23 +74,23 @@ struct DuelInfo {
bool
isTag
{
false
};
bool
isSingleMode
{
false
};
bool
is_shuffling
{
false
};
bool
tag_player
[
2
]{
false
};
bool
tag_player
[
2
]{};
bool
isReplaySwapped
{
false
};
int
lp
[
2
]{
0
};
int
lp
[
2
]{};
int
start_lp
{
0
};
int
duel_rule
{
0
};
int
turn
{
0
};
short
curMsg
{
0
};
wchar_t
hostname
[
20
]{
0
};
wchar_t
clientname
[
20
]{
0
};
wchar_t
hostname_tag
[
20
]{
0
};
wchar_t
clientname_tag
[
20
]{
0
};
wchar_t
strLP
[
2
][
16
]{
0
};
wchar_t
*
vic_string
{
0
};
wchar_t
hostname
[
20
]{};
wchar_t
clientname
[
20
]{};
wchar_t
hostname_tag
[
20
]{};
wchar_t
clientname_tag
[
20
]{};
wchar_t
strLP
[
2
][
16
]{};
wchar_t
*
vic_string
{
nullptr
};
unsigned
char
player_type
{
0
};
unsigned
char
time_player
{
0
};
unsigned
short
time_limit
{
0
};
unsigned
short
time_left
[
2
]{
0
};
unsigned
short
time_left
[
2
]{};
void
Clear
();
};
...
...
gframe/single_duel.h
View file @
62fe61c7
...
...
@@ -45,12 +45,12 @@ private:
int
WriteUpdateData
(
int
&
player
,
int
location
,
int
&
flag
,
unsigned
char
*&
qbuf
,
int
&
use_cache
);
protected:
DuelPlayer
*
players
[
2
]{
nullptr
};
DuelPlayer
*
pplayer
[
2
]{
nullptr
};
bool
ready
[
2
]{
false
};
DuelPlayer
*
players
[
2
]{};
DuelPlayer
*
pplayer
[
2
]{};
bool
ready
[
2
]{};
Deck
pdeck
[
2
];
int
deck_error
[
2
]{
0
};
unsigned
char
hand_result
[
2
]{
0
};
int
deck_error
[
2
]{};
unsigned
char
hand_result
[
2
]{};
unsigned
char
last_response
{
0
};
std
::
set
<
DuelPlayer
*>
observers
;
Replay
last_replay
;
...
...
@@ -58,8 +58,8 @@ protected:
int
match_kill
{
0
};
unsigned
char
duel_count
{
0
};
unsigned
char
tp_player
{
0
};
unsigned
char
match_result
[
3
]{
0
};
short
time_limit
[
2
]{
0
};
unsigned
char
match_result
[
3
]{};
short
time_limit
[
2
]{};
short
time_elapsed
{
0
};
};
...
...
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