Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
8f172f57
Commit
8f172f57
authored
May 04, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
54fadd0e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1369 additions
and
7 deletions
+1369
-7
gframe/network.h
gframe/network.h
+19
-5
gframe/single_duel.cpp
gframe/single_duel.cpp
+1
-0
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1344
-0
gframe/tag_duel.h
gframe/tag_duel.h
+1
-0
ocgcore/operations.cpp
ocgcore/operations.cpp
+4
-2
No files found.
gframe/network.h
View file @
8f172f57
...
@@ -95,6 +95,17 @@ struct STOC_HS_PlayerChange {
...
@@ -95,6 +95,17 @@ struct STOC_HS_PlayerChange {
struct
STOC_HS_WatchChange
{
struct
STOC_HS_WatchChange
{
unsigned
short
watch_count
;
unsigned
short
watch_count
;
};
};
struct
STOC_HT_PlayerEnter
{
unsigned
short
name
[
20
];
unsigned
char
pos
;
};
struct
STOC_HT_PlayerChange
{
//pos<<4 | state
unsigned
char
status
;
};
struct
STOC_HT_WatchChange
{
unsigned
short
watch_count
;
};
class
DuelMode
;
class
DuelMode
;
...
@@ -175,11 +186,12 @@ public:
...
@@ -175,11 +186,12 @@ public:
#define CTOS_HS_NOTREADY 0x23
#define CTOS_HS_NOTREADY 0x23
#define CTOS_HS_KICK 0x24
#define CTOS_HS_KICK 0x24
#define CTOS_HS_START 0x25
#define CTOS_HS_START 0x25
#define CTOS_HT_CHANGEPOS 0x30
#define CTOS_HT_TODUELIST 0x30
#define CTOS_HT_READY 0x31
#define CTOS_HT_TOOBSERVER 0x31
#define CTOS_HT_NOTREADY 0x32
#define CTOS_HT_READY 0x32
#define CTOS_HT_KICK 0x33
#define CTOS_HT_NOTREADY 0x33
#define CTOS_HT_START 0x34
#define CTOS_HT_KICK 0x34
#define CTOS_HT_START 0x35
#define STOC_GAME_MSG 0x1
#define STOC_GAME_MSG 0x1
#define STOC_ERROR_MSG 0x2
#define STOC_ERROR_MSG 0x2
...
@@ -203,6 +215,7 @@ public:
...
@@ -203,6 +215,7 @@ public:
#define STOC_HS_WATCH_CHANGE 0x22
#define STOC_HS_WATCH_CHANGE 0x22
#define STOC_HT_PLAYER_ENTER 0x30
#define STOC_HT_PLAYER_ENTER 0x30
#define STOC_HT_PLAYER_CHANGE 0x31
#define STOC_HT_PLAYER_CHANGE 0x31
#define STOC_HT_WATCH_CHANGE 0x32
#define PLAYERCHANGE_READY 0x1
#define PLAYERCHANGE_READY 0x1
#define PLAYERCHANGE_NOTREADY 0x2
#define PLAYERCHANGE_NOTREADY 0x2
...
@@ -216,4 +229,5 @@ public:
...
@@ -216,4 +229,5 @@ public:
#define MODE_SINGLE 0x0
#define MODE_SINGLE 0x0
#define MODE_MATCH 0x1
#define MODE_MATCH 0x1
#define MODE_TAG 0x2
#endif //NETWORK_H
#endif //NETWORK_H
gframe/single_duel.cpp
View file @
8f172f57
...
@@ -225,6 +225,7 @@ void SingleDuel::ToObserver(DuelPlayer* dp) {
...
@@ -225,6 +225,7 @@ void SingleDuel::ToObserver(DuelPlayer* dp) {
for
(
auto
pit
=
observers
.
begin
();
pit
!=
observers
.
end
();
++
pit
)
for
(
auto
pit
=
observers
.
begin
();
pit
!=
observers
.
end
();
++
pit
)
NetServer
::
SendPacketToPlayer
(
*
pit
,
STOC_HS_PLAYER_CHANGE
,
scpc
);
NetServer
::
SendPacketToPlayer
(
*
pit
,
STOC_HS_PLAYER_CHANGE
,
scpc
);
players
[
dp
->
type
]
=
0
;
players
[
dp
->
type
]
=
0
;
ready
[
dp
->
type
]
=
false
;
dp
->
type
=
NETPLAYER_TYPE_OBSERVER
;
dp
->
type
=
NETPLAYER_TYPE_OBSERVER
;
observers
.
insert
(
dp
);
observers
.
insert
(
dp
);
STOC_TypeChange
sctc
;
STOC_TypeChange
sctc
;
...
...
gframe/tag_duel.cpp
View file @
8f172f57
This diff is collapsed.
Click to expand it.
gframe/tag_duel.h
View file @
8f172f57
...
@@ -44,6 +44,7 @@ public:
...
@@ -44,6 +44,7 @@ public:
protected:
protected:
DuelPlayer
*
players
[
4
];
DuelPlayer
*
players
[
4
];
DuelPlayer
*
pplayer
[
4
];
DuelPlayer
*
pplayer
[
4
];
std
::
set
<
DuelPlayer
*>
observers
;
bool
ready
[
4
];
bool
ready
[
4
];
Deck
pdeck
[
4
];
Deck
pdeck
[
4
];
unsigned
char
hand_result
[
2
];
unsigned
char
hand_result
[
2
];
...
...
ocgcore/operations.cpp
View file @
8f172f57
...
@@ -886,7 +886,8 @@ int32 field::control_adjust(uint16 step) {
...
@@ -886,7 +886,8 @@ int32 field::control_adjust(uint16 step) {
pduel->write_buffer32(504);
pduel->write_buffer32(504);
add_process(PROCESSOR_SELECT_CARD, 0, 0, 0, 1, count + (count << 16));
add_process(PROCESSOR_SELECT_CARD, 0, 0, 0, 1, count + (count << 16));
}
}
}
} else
core.units.begin()->step = 1;
} else if (core.control_adjust_set[0].size() < core.control_adjust_set[1].size()) {
} else if (core.control_adjust_set[0].size() < core.control_adjust_set[1].size()) {
if(core.control_adjust_set[1].size() - core.control_adjust_set[0].size() > b0) {
if(core.control_adjust_set[1].size() - core.control_adjust_set[0].size() > b0) {
if(core.control_adjust_set[0].size() == 0 && b0 == 0) {
if(core.control_adjust_set[0].size() == 0 && b0 == 0) {
...
@@ -905,7 +906,8 @@ int32 field::control_adjust(uint16 step) {
...
@@ -905,7 +906,8 @@ int32 field::control_adjust(uint16 step) {
pduel->write_buffer32(504);
pduel->write_buffer32(504);
add_process(PROCESSOR_SELECT_CARD, 0, 0, 0, 0, count + (count << 16));
add_process(PROCESSOR_SELECT_CARD, 0, 0, 0, 0, count + (count << 16));
}
}
}
} else
core.units.begin()->step = 1;
} else
} else
core.units.begin()->step = 1;
core.units.begin()->step = 1;
return FALSE;
return FALSE;
...
...
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