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
MobiusMei
ygopro
Commits
77cea9dd
Commit
77cea9dd
authored
Aug 09, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
fe0246a7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
645 additions
and
330 deletions
+645
-330
gframe/netserver.h
gframe/netserver.h
+8
-0
gframe/single_duel.cpp
gframe/single_duel.cpp
+327
-171
gframe/single_duel.h
gframe/single_duel.h
+3
-2
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+304
-155
gframe/tag_duel.h
gframe/tag_duel.h
+3
-2
No files found.
gframe/netserver.h
View file @
77cea9dd
...
...
@@ -76,6 +76,14 @@ public:
if
(
dp
)
bufferevent_write
(
dp
->
bev
,
net_server_write
,
last_sent
);
}
#ifdef YGOPRO_SERVER_MODE
static
void
ReSendToPlayers
(
DuelPlayer
*
dp1
,
DuelPlayer
*
dp2
)
{
if
(
dp1
)
bufferevent_write
(
dp1
->
bev
,
net_server_write
,
last_sent
);
if
(
dp2
)
bufferevent_write
(
dp2
->
bev
,
net_server_write
,
last_sent
);
}
#endif //YGOPRO_SERVER_MODE
};
}
...
...
gframe/single_duel.cpp
View file @
77cea9dd
This diff is collapsed.
Click to expand it.
gframe/single_duel.h
View file @
77cea9dd
...
...
@@ -50,8 +50,9 @@ protected:
unsigned
char
last_response
;
std
::
set
<
DuelPlayer
*>
observers
;
#ifdef YGOPRO_SERVER_MODE
std
::
set
<
DuelPlayer
*>
recorders
;
#endif //YGOPRO_SERVER_MODE
DuelPlayer
*
cache_recorder
;
DuelPlayer
*
replay_recorder
;
#endif
Replay
last_replay
;
bool
match_mode
;
int
match_kill
;
...
...
gframe/tag_duel.cpp
View file @
77cea9dd
This diff is collapsed.
Click to expand it.
gframe/tag_duel.h
View file @
77cea9dd
...
...
@@ -47,8 +47,9 @@ protected:
DuelPlayer
*
cur_player
[
2
];
std
::
set
<
DuelPlayer
*>
observers
;
#ifdef YGOPRO_SERVER_MODE
std
::
set
<
DuelPlayer
*>
recorders
;
#endif //YGOPRO_SERVER_MODE
DuelPlayer
*
cache_recorder
;
DuelPlayer
*
replay_recorder
;
#endif
bool
ready
[
4
];
Deck
pdeck
[
4
];
unsigned
char
hand_result
[
2
];
...
...
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