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
YGOPRO-520DIY
ygopro
Commits
ec6813fb
Commit
ec6813fb
authored
Jun 08, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refa initializer
parent
104b1e14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
24 deletions
+14
-24
gframe/single_duel.cpp
gframe/single_duel.cpp
+0
-4
gframe/single_duel.h
gframe/single_duel.h
+7
-8
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+0
-4
gframe/tag_duel.h
gframe/tag_duel.h
+7
-8
No files found.
gframe/single_duel.cpp
View file @
ec6813fb
...
@@ -12,10 +12,6 @@ extern unsigned short replay_mode;
...
@@ -12,10 +12,6 @@ extern unsigned short replay_mode;
#endif
#endif
SingleDuel
::
SingleDuel
(
bool
is_match
)
{
SingleDuel
::
SingleDuel
(
bool
is_match
)
{
match_mode
=
is_match
;
match_mode
=
is_match
;
#ifdef YGOPRO_SERVER_MODE
cache_recorder
=
0
;
replay_recorder
=
0
;
#endif
}
}
SingleDuel
::~
SingleDuel
()
{
SingleDuel
::~
SingleDuel
()
{
}
}
...
...
gframe/single_duel.h
View file @
ec6813fb
...
@@ -67,10 +67,10 @@ protected:
...
@@ -67,10 +67,10 @@ protected:
unsigned
char
last_response
{
0
};
unsigned
char
last_response
{
0
};
std
::
set
<
DuelPlayer
*>
observers
;
std
::
set
<
DuelPlayer
*>
observers
;
#ifdef YGOPRO_SERVER_MODE
#ifdef YGOPRO_SERVER_MODE
DuelPlayer
*
cache_recorder
;
DuelPlayer
*
cache_recorder
{}
;
DuelPlayer
*
replay_recorder
;
DuelPlayer
*
replay_recorder
{}
;
unsigned
char
turn_player
;
unsigned
char
turn_player
{
0
}
;
unsigned
short
phase
;
unsigned
short
phase
{
0
}
;
#endif
#endif
Replay
last_replay
;
Replay
last_replay
;
bool
match_mode
{
false
};
bool
match_mode
{
false
};
...
@@ -81,13 +81,12 @@ protected:
...
@@ -81,13 +81,12 @@ protected:
short
time_limit
[
2
]{};
short
time_limit
[
2
]{};
short
time_elapsed
{
0
};
short
time_elapsed
{
0
};
#ifdef YGOPRO_SERVER_MODE
#ifdef YGOPRO_SERVER_MODE
short
time_compensator
[
2
];
short
time_compensator
[
2
]
{}
;
short
time_backed
[
2
];
short
time_backed
[
2
]
{}
;
unsigned
char
last_game_msg
;
unsigned
char
last_game_msg
{
0
}
;
#endif
#endif
};
};
}
}
#endif //SINGLE_DUEL_H
#endif //SINGLE_DUEL_H
gframe/tag_duel.cpp
View file @
ec6813fb
...
@@ -16,10 +16,6 @@ TagDuel::TagDuel() {
...
@@ -16,10 +16,6 @@ TagDuel::TagDuel() {
ready
[
i
]
=
false
;
ready
[
i
]
=
false
;
surrender
[
i
]
=
false
;
surrender
[
i
]
=
false
;
}
}
#ifdef YGOPRO_SERVER_MODE
cache_recorder
=
0
;
replay_recorder
=
0
;
#endif
}
}
TagDuel
::~
TagDuel
()
{
TagDuel
::~
TagDuel
()
{
}
}
...
...
gframe/tag_duel.h
View file @
ec6813fb
...
@@ -63,10 +63,10 @@ protected:
...
@@ -63,10 +63,10 @@ protected:
DuelPlayer
*
cur_player
[
2
];
DuelPlayer
*
cur_player
[
2
];
std
::
set
<
DuelPlayer
*>
observers
;
std
::
set
<
DuelPlayer
*>
observers
;
#ifdef YGOPRO_SERVER_MODE
#ifdef YGOPRO_SERVER_MODE
DuelPlayer
*
cache_recorder
;
DuelPlayer
*
cache_recorder
{}
;
DuelPlayer
*
replay_recorder
;
DuelPlayer
*
replay_recorder
{}
;
int
turn_player
;
unsigned
char
turn_player
{
0
}
;
int
phase
;
unsigned
short
phase
{
0
}
;
#endif
#endif
bool
ready
[
4
];
bool
ready
[
4
];
bool
surrender
[
4
];
bool
surrender
[
4
];
...
@@ -79,13 +79,12 @@ protected:
...
@@ -79,13 +79,12 @@ protected:
short
time_limit
[
2
];
short
time_limit
[
2
];
short
time_elapsed
;
short
time_elapsed
;
#ifdef YGOPRO_SERVER_MODE
#ifdef YGOPRO_SERVER_MODE
short
time_compensator
[
2
];
short
time_compensator
[
2
]
{}
;
short
time_backed
[
2
];
short
time_backed
[
2
]
{}
;
unsigned
char
last_game_msg
;
unsigned
char
last_game_msg
{
0
}
;
#endif
#endif
};
};
}
}
#endif //TAG_DUEL_H
#endif //TAG_DUEL_H
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