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
40fae330
Commit
40fae330
authored
Sep 06, 2015
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add time limit param
parent
89ffc7a5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
2 deletions
+7
-2
gframe/game.cpp
gframe/game.cpp
+1
-0
gframe/game.h
gframe/game.h
+1
-0
gframe/gframe.cpp
gframe/gframe.cpp
+1
-0
gframe/single_duel.cpp
gframe/single_duel.cpp
+2
-1
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+2
-1
No files found.
gframe/game.cpp
View file @
40fae330
...
@@ -31,6 +31,7 @@ bool enable_priority;
...
@@ -31,6 +31,7 @@ bool enable_priority;
bool
no_check_deck
;
bool
no_check_deck
;
bool
no_shuffle_deck
;
bool
no_shuffle_deck
;
unsigned
int
start_lp
;
unsigned
int
start_lp
;
unsigned
short
time_limit
;
unsigned
char
start_hand
;
unsigned
char
start_hand
;
unsigned
char
draw_count
;
unsigned
char
draw_count
;
...
...
gframe/game.h
View file @
40fae330
...
@@ -369,6 +369,7 @@ extern bool enable_priority;
...
@@ -369,6 +369,7 @@ extern bool enable_priority;
extern
bool
no_check_deck
;
extern
bool
no_check_deck
;
extern
bool
no_shuffle_deck
;
extern
bool
no_shuffle_deck
;
extern
unsigned
int
start_lp
;
extern
unsigned
int
start_lp
;
extern
unsigned
short
time_limit
;
extern
unsigned
char
start_hand
;
extern
unsigned
char
start_hand
;
extern
unsigned
char
draw_count
;
extern
unsigned
char
draw_count
;
...
...
gframe/gframe.cpp
View file @
40fae330
...
@@ -41,6 +41,7 @@ int main(int argc, char* argv[]) {
...
@@ -41,6 +41,7 @@ int main(int argc, char* argv[]) {
ygo
::
start_lp
=
atoi
(
argv
[
8
]);
ygo
::
start_lp
=
atoi
(
argv
[
8
]);
ygo
::
start_hand
=
atoi
(
argv
[
9
]);
ygo
::
start_hand
=
atoi
(
argv
[
9
]);
ygo
::
draw_count
=
atoi
(
argv
[
10
]);
ygo
::
draw_count
=
atoi
(
argv
[
10
]);
ygo
::
time_limit
=
atoi
(
argv
[
11
]);
}
}
ygo
::
mainGame
=
&
_game
;
ygo
::
mainGame
=
&
_game
;
ygo
::
mainGame
->
MainServerLoop
(
ygo
::
mode
);
ygo
::
mainGame
->
MainServerLoop
(
ygo
::
mode
);
...
...
gframe/single_duel.cpp
View file @
40fae330
...
@@ -16,6 +16,7 @@ extern bool enable_priority;
...
@@ -16,6 +16,7 @@ extern bool enable_priority;
extern
bool
no_check_deck
;
extern
bool
no_check_deck
;
extern
bool
no_shuffle_deck
;
extern
bool
no_shuffle_deck
;
extern
unsigned
int
start_lp
;
extern
unsigned
int
start_lp
;
extern
unsigned
short
time_limit
;
extern
unsigned
char
start_hand
;
extern
unsigned
char
start_hand
;
extern
unsigned
char
draw_count
;
extern
unsigned
char
draw_count
;
bool
runasserver
=
true
;
bool
runasserver
=
true
;
...
@@ -89,7 +90,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
...
@@ -89,7 +90,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
enable_priority
=
ygo
::
enable_priority
;
host_info
.
enable_priority
=
ygo
::
enable_priority
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
time_limit
=
180
;
host_info
.
time_limit
=
ygo
::
time_limit
;
}
}
}
else
}
else
{
{
...
...
gframe/tag_duel.cpp
View file @
40fae330
...
@@ -16,6 +16,7 @@ extern bool enable_priority;
...
@@ -16,6 +16,7 @@ extern bool enable_priority;
extern
bool
no_check_deck
;
extern
bool
no_check_deck
;
extern
bool
no_shuffle_deck
;
extern
bool
no_shuffle_deck
;
extern
unsigned
int
start_lp
;
extern
unsigned
int
start_lp
;
extern
unsigned
short
time_limit
;
extern
unsigned
char
start_hand
;
extern
unsigned
char
start_hand
;
extern
unsigned
char
draw_count
;
extern
unsigned
char
draw_count
;
...
@@ -75,7 +76,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
...
@@ -75,7 +76,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
enable_priority
=
ygo
::
enable_priority
;
host_info
.
enable_priority
=
ygo
::
enable_priority
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
time_limit
=
180
;
host_info
.
time_limit
=
ygo
::
time_limit
;
}
}
}
else
}
else
{
{
...
...
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