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
43fba0c7
Commit
43fba0c7
authored
May 16, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
ae417f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
31 deletions
+17
-31
gframe/client_field.cpp
gframe/client_field.cpp
+17
-31
No files found.
gframe/client_field.cpp
View file @
43fba0c7
...
...
@@ -124,37 +124,23 @@ void ClientField::Clear() {
RefreshCardCountDisplay
();
}
void
ClientField
::
Initial
(
int
player
,
int
deckc
,
int
extrac
,
int
sidec
)
{
ClientCard
*
pcard
;
for
(
int
i
=
0
;
i
<
deckc
;
++
i
)
{
pcard
=
new
ClientCard
;
deck
[
player
].
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
LOCATION_DECK
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
for
(
int
i
=
0
;
i
<
extrac
;
++
i
)
{
pcard
=
new
ClientCard
;
extra
[
player
].
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
LOCATION_EXTRA
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
for
(
int
i
=
0
;
i
<
sidec
;
++
i
)
{
pcard
=
new
ClientCard
;
remove
[
player
].
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
LOCATION_REMOVED
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
auto
load_location
=
[
&
](
std
::
vector
<
ClientCard
*>&
container
,
int
count
,
uint8_t
location
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
ClientCard
*
pcard
=
new
ClientCard
;
container
.
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
location
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
};
load_location
(
deck
[
player
],
deckc
,
LOCATION_DECK
);
load_location
(
extra
[
player
],
extrac
,
LOCATION_EXTRA
);
load_location
(
remove
[
player
],
sidec
,
LOCATION_REMOVED
);
RefreshCardCountDisplay
();
}
void
ClientField
::
ResetSequence
(
std
::
vector
<
ClientCard
*>&
list
,
bool
reset_height
)
{
...
...
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