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
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-core
Commits
4309e375
Commit
4309e375
authored
Oct 09, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use "default" to generate destructor
parent
3c460997
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
25 deletions
+4
-25
card.cpp
card.cpp
+0
-12
card.h
card.h
+1
-1
effect.cpp
effect.cpp
+0
-3
effect.h
effect.h
+1
-1
field.cpp
field.cpp
+0
-3
field.h
field.h
+1
-1
group.cpp
group.cpp
+0
-3
group.h
group.h
+1
-1
No files found.
card.cpp
View file @
4309e375
...
...
@@ -99,18 +99,6 @@ card::card(duel* pd) {
spsummon_code
=
0
;
current
.
controler
=
PLAYER_NONE
;
}
card
::~
card
()
{
indexer
.
clear
();
relations
.
clear
();
counters
.
clear
();
equiping_cards
.
clear
();
material_cards
.
clear
();
single_effect
.
clear
();
field_effect
.
clear
();
equip_effect
.
clear
();
xmaterial_effect
.
clear
();
relate_effect
.
clear
();
}
uint32
card
::
get_infos
(
byte
*
buf
,
int32
query_flag
,
int32
use_cache
)
{
int32
*
p
=
(
int32
*
)
buf
;
int32
tdata
=
0
;
...
...
card.h
View file @
4309e375
...
...
@@ -187,7 +187,7 @@ public:
effect_set_v
immune_effect
;
explicit
card
(
duel
*
pd
);
~
card
();
~
card
()
=
default
;
static
bool
card_operation_sort
(
card
*
c1
,
card
*
c2
);
const
bool
is_extra_deck_monster
()
{
return
!!
(
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
|
TYPE_LINK
));
}
...
...
effect.cpp
View file @
4309e375
...
...
@@ -51,9 +51,6 @@ effect::effect(duel* pd) {
target
=
0
;
value
=
0
;
operation
=
0
;
}
effect
::~
effect
()
{
}
int32
effect
::
is_disable_related
()
{
if
(
code
==
EFFECT_IMMUNE_EFFECT
||
code
==
EFFECT_DISABLE
||
code
==
EFFECT_CANNOT_DISABLE
||
code
==
EFFECT_FORBIDDEN
)
...
...
effect.h
View file @
4309e375
...
...
@@ -63,7 +63,7 @@ public:
int32
operation
;
explicit
effect
(
duel
*
pd
);
~
effect
();
~
effect
()
=
default
;
int32
is_disable_related
();
int32
is_can_be_forbidden
();
...
...
field.cpp
View file @
4309e375
...
...
@@ -106,9 +106,6 @@ field::field(duel* pduel) {
nil_event
.
reason
=
0
;
nil_event
.
reason_effect
=
0
;
nil_event
.
reason_player
=
PLAYER_NONE
;
}
field
::~
field
()
{
}
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
...
...
field.h
View file @
4309e375
...
...
@@ -345,7 +345,7 @@ public:
static
int32
field_used_count
[
32
];
explicit
field
(
duel
*
pduel
);
~
field
();
~
field
()
=
default
;
void
reload_field_info
();
void
add_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
,
uint8
pzone
=
FALSE
);
...
...
group.cpp
View file @
4309e375
...
...
@@ -25,6 +25,3 @@ group::group(duel* pd, const card_set& cset): container(cset) {
pduel
=
pd
;
is_readonly
=
FALSE
;
}
group
::~
group
()
{
}
group.h
View file @
4309e375
...
...
@@ -31,7 +31,7 @@ public:
explicit
group
(
duel
*
pd
);
group
(
duel
*
pd
,
card
*
pcard
);
group
(
duel
*
pd
,
const
card_set
&
cset
);
~
group
();
~
group
()
=
default
;
};
#endif
/* GROUP_H_ */
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