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
d0c67e19
Commit
d0c67e19
authored
Nov 24, 2024
by
Chen Bill
Committed by
GitHub
Nov 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
card: remove const member function (#674)
parent
ca69f726
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
card.cpp
card.cpp
+4
-4
card.h
card.h
+4
-4
No files found.
card.cpp
View file @
d0c67e19
...
...
@@ -1276,15 +1276,15 @@ uint32 card::get_rscale() {
temp
.
rscale
=
UINT32_MAX
;
return
rscale
;
}
uint32
card
::
get_link_marker
()
const
{
uint32
card
::
get_link_marker
()
{
if
(
!
(
data
.
type
&
TYPE_LINK
))
return
0
;
return
data
.
link_marker
;
}
uint32
card
::
is_link_marker
(
uint32
dir
)
const
{
uint32
card
::
is_link_marker
(
uint32
dir
)
{
return
get_link_marker
()
&
dir
;
}
uint32
card
::
get_linked_zone
()
const
{
uint32
card
::
get_linked_zone
()
{
if
(
!
(
data
.
type
&
TYPE_LINK
)
||
current
.
location
!=
LOCATION_MZONE
||
is_treated_as_not_on_field
())
return
0
;
uint32
zones
=
0
;
...
...
@@ -1340,7 +1340,7 @@ void card::get_linked_cards(card_set* cset) {
pduel
->
game_field
->
get_cards_in_zone
(
cset
,
linked_zone
,
p
,
LOCATION_MZONE
);
pduel
->
game_field
->
get_cards_in_zone
(
cset
,
linked_zone
>>
16
,
1
-
p
,
LOCATION_MZONE
);
}
uint32
card
::
get_mutual_linked_zone
()
const
{
uint32
card
::
get_mutual_linked_zone
()
{
if
(
!
(
data
.
type
&
TYPE_LINK
)
||
current
.
location
!=
LOCATION_MZONE
||
is_treated_as_not_on_field
())
return
0
;
uint32
zones
=
0
;
...
...
card.h
View file @
d0c67e19
...
...
@@ -262,11 +262,11 @@ public:
uint32
get_grave_race
(
uint8
playerid
);
uint32
get_lscale
();
uint32
get_rscale
();
uint32
get_link_marker
()
const
;
uint32
is_link_marker
(
uint32
dir
)
const
;
uint32
get_linked_zone
()
const
;
uint32
get_link_marker
();
uint32
is_link_marker
(
uint32
dir
);
uint32
get_linked_zone
();
void
get_linked_cards
(
card_set
*
cset
);
uint32
get_mutual_linked_zone
()
const
;
uint32
get_mutual_linked_zone
();
void
get_mutual_linked_cards
(
card_set
*
cset
);
int32
is_link_state
();
int32
is_extra_link_state
();
...
...
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