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
REIKAI
ygopro
Commits
75889e7b
Commit
75889e7b
authored
Jan 17, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client
parent
339d756b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1874 additions
and
1891 deletions
+1874
-1891
gframe/client_field.cpp
gframe/client_field.cpp
+0
-1
gframe/duelclient.cpp
gframe/duelclient.cpp
+1870
-1888
gframe/duelclient.h
gframe/duelclient.h
+4
-2
No files found.
gframe/client_field.cpp
View file @
75889e7b
...
...
@@ -454,7 +454,6 @@ void ClientField::ReplaySwap() {
(
*
cit
)
->
is_moving
=
false
;
}
mainGame
->
dInfo
.
is_first_turn
=
!
mainGame
->
dInfo
.
is_first_turn
;
std
::
swap
(
mainGame
->
dInfo
.
is_host_player
[
0
],
mainGame
->
dInfo
.
is_host_player
[
1
]);
std
::
swap
(
mainGame
->
dInfo
.
lp
[
0
],
mainGame
->
dInfo
.
lp
[
1
]);
for
(
int
i
=
0
;
i
<
16
;
++
i
)
std
::
swap
(
mainGame
->
dInfo
.
strLP
[
0
][
i
],
mainGame
->
dInfo
.
strLP
[
1
][
i
]);
...
...
gframe/duelclient.cpp
View file @
75889e7b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
gframe/duelclient.h
View file @
75889e7b
...
...
@@ -10,6 +10,7 @@
#include "network.h"
#include "data_manager.h"
#include "deck_manager.h"
#include "../ocgcore/mtrandom.h"
namespace
ygo
{
...
...
@@ -17,7 +18,6 @@ class DuelClient {
private:
static
unsigned
int
connect_state
;
static
unsigned
char
response_buf
[
64
];
static
bool
is_responseB
;
static
unsigned
char
response_len
;
static
event_base
*
client_base
;
static
bufferevent
*
client_bev
;
...
...
@@ -25,7 +25,8 @@ private:
static
char
duel_client_write
[
0x2000
];
static
bool
is_closing
;
static
int
select_hint
;
static
wchar_t
event_string
[
128
];
static
wchar_t
event_string
[
256
];
static
mtrandom
rnd
;
public:
static
bool
StartClient
(
unsigned
int
ip
,
unsigned
short
port
,
bool
create_game
=
true
);
static
void
StopClient
(
bool
is_exiting
=
false
);
...
...
@@ -36,6 +37,7 @@ public:
static
int
ClientAnalyze
(
char
*
msg
,
unsigned
int
len
);
static
void
SetResponseI
(
int
respI
);
static
void
SetResponseB
(
unsigned
char
*
respB
,
unsigned
char
len
);
static
void
SendResponse
();
static
void
SendPacketToServer
(
unsigned
char
proto
)
{
char
*
p
=
duel_client_write
;
BufferIO
::
WriteInt16
(
p
,
1
);
...
...
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