Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
d2168a8c
Commit
d2168a8c
authored
Dec 10, 2023
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use default member initializer
parent
d1b1c9d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
16 deletions
+10
-16
card.h
card.h
+4
-4
effectset.h
effectset.h
+1
-4
field.h
field.h
+2
-2
operations.cpp
operations.cpp
+3
-6
No files found.
card.h
View file @
d2168a8c
...
@@ -146,10 +146,10 @@ public:
...
@@ -146,10 +146,10 @@ public:
location
=
0
;
location
=
0
;
sequence
=
0
;
sequence
=
0
;
}
}
uint8
playerid
;
uint8
playerid
{
0
}
;
uint8
position
;
uint8
position
{
0
}
;
uint8
location
;
uint8
location
{
0
}
;
uint8
sequence
;
uint8
sequence
{
0
}
;
};
};
int32
ref_handle
;
int32
ref_handle
;
duel
*
pduel
;
duel
*
pduel
;
...
...
effectset.h
View file @
d2168a8c
...
@@ -18,8 +18,6 @@ class effect;
...
@@ -18,8 +18,6 @@ class effect;
bool
effect_sort_id
(
const
effect
*
e1
,
const
effect
*
e2
);
bool
effect_sort_id
(
const
effect
*
e1
,
const
effect
*
e2
);
struct
effect_set
{
struct
effect_set
{
effect_set
()
:
count
(
0
),
container
{
nullptr
}
{}
void
add_item
(
effect
*
peffect
)
{
void
add_item
(
effect
*
peffect
)
{
if
(
count
>=
64
)
return
;
if
(
count
>=
64
)
return
;
container
[
count
++
]
=
peffect
;
container
[
count
++
]
=
peffect
;
...
@@ -66,11 +64,10 @@ struct effect_set {
...
@@ -66,11 +64,10 @@ struct effect_set {
}
}
private:
private:
std
::
array
<
effect
*
,
64
>
container
;
std
::
array
<
effect
*
,
64
>
container
;
int
count
;
int
count
{
0
}
;
};
};
struct
effect_set_v
{
struct
effect_set_v
{
effect_set_v
()
{}
void
add_item
(
effect
*
peffect
)
{
void
add_item
(
effect
*
peffect
)
{
container
.
push_back
(
peffect
);
container
.
push_back
(
peffect
);
}
}
...
...
field.h
View file @
d2168a8c
...
@@ -167,8 +167,8 @@ struct processor {
...
@@ -167,8 +167,8 @@ struct processor {
using
delayed_effect_collection
=
std
::
set
<
std
::
pair
<
effect
*
,
tevent
>>
;
using
delayed_effect_collection
=
std
::
set
<
std
::
pair
<
effect
*
,
tevent
>>
;
struct
chain_limit_t
{
struct
chain_limit_t
{
chain_limit_t
(
int32
f
,
int32
p
)
:
function
(
f
),
player
(
p
)
{}
chain_limit_t
(
int32
f
,
int32
p
)
:
function
(
f
),
player
(
p
)
{}
int32
function
;
int32
function
{
0
}
;
int32
player
;
int32
player
{
PLAYER_NONE
}
;
};
};
using
chain_limit_list
=
std
::
vector
<
chain_limit_t
>
;
using
chain_limit_list
=
std
::
vector
<
chain_limit_t
>
;
...
...
operations.cpp
View file @
d2168a8c
...
@@ -3856,15 +3856,12 @@ int32 field::send_replace(uint16 step, group * targets, card * target) {
...
@@ -3856,15 +3856,12 @@ int32 field::send_replace(uint16 step, group * targets, card * target) {
}
}
int32
field
::
send_to
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint32
reason
,
uint8
reason_player
)
{
int32
field
::
send_to
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint32
reason
,
uint8
reason_player
)
{
struct
exargs
{
struct
exargs
{
group
*
targets
;
group
*
targets
{
nullptr
}
;
card_set
leave_field
,
leave_grave
,
leave_deck
,
detach
;
card_set
leave_field
,
leave_grave
,
leave_deck
,
detach
;
bool
show_decktop
[
2
];
bool
show_decktop
[
2
]
{
false
}
;
card_vector
cv
;
card_vector
cv
;
card_vector
::
iterator
cvit
;
card_vector
::
iterator
cvit
;
effect
*
predirect
;
effect
*
predirect
{
nullptr
};
exargs
()
:
targets
(
nullptr
),
show_decktop
{
FALSE
},
predirect
(
nullptr
)
{}
}
;
}
;
switch
(
step
)
{
switch
(
step
)
{
case
0
:
{
case
0
:
{
...
...
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