Skip to content

Commit

Permalink
card: remove const member function (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 authored Nov 24, 2024
1 parent ca69f72 commit d0c67e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions card.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ class card {
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();
Expand Down

0 comments on commit d0c67e1

Please sign in to comment.