Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
763e3bc7
Commit
763e3bc7
authored
Oct 09, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore
parent
cf1422a3
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8 additions
and
28 deletions
+8
-28
Classes/ocgcore/card.cpp
Classes/ocgcore/card.cpp
+0
-12
Classes/ocgcore/card.h
Classes/ocgcore/card.h
+1
-1
Classes/ocgcore/effect.cpp
Classes/ocgcore/effect.cpp
+0
-3
Classes/ocgcore/effect.h
Classes/ocgcore/effect.h
+1
-1
Classes/ocgcore/effectset.h
Classes/ocgcore/effectset.h
+1
-0
Classes/ocgcore/field.cpp
Classes/ocgcore/field.cpp
+0
-3
Classes/ocgcore/field.h
Classes/ocgcore/field.h
+1
-1
Classes/ocgcore/group.cpp
Classes/ocgcore/group.cpp
+0
-3
Classes/ocgcore/group.h
Classes/ocgcore/group.h
+1
-1
Classes/ocgcore/processor.cpp
Classes/ocgcore/processor.cpp
+3
-3
No files found.
Classes/ocgcore/card.cpp
View file @
763e3bc7
...
...
@@ -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
;
...
...
Classes/ocgcore/card.h
View file @
763e3bc7
...
...
@@ -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
));
}
...
...
Classes/ocgcore/effect.cpp
View file @
763e3bc7
...
...
@@ -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
)
...
...
Classes/ocgcore/effect.h
View file @
763e3bc7
...
...
@@ -63,7 +63,7 @@ public:
int32
operation
;
explicit
effect
(
duel
*
pd
);
~
effect
();
~
effect
()
=
default
;
int32
is_disable_related
();
int32
is_can_be_forbidden
();
...
...
Classes/ocgcore/effectset.h
View file @
763e3bc7
...
...
@@ -101,6 +101,7 @@ struct effect_set_v {
effect
*&
at
(
int
index
)
{
return
container
[
index
];
}
private:
std
::
vector
<
effect
*>
container
;
int
count
;
};
...
...
Classes/ocgcore/field.cpp
View file @
763e3bc7
...
...
@@ -109,9 +109,6 @@ field::field(duel* pduel) {
#ifdef _IRR_ANDROID_PLATFORM_
memset
(
&
returns
,
0
,
sizeof
(
return_value
));
#endif
}
field
::~
field
()
{
}
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
...
...
Classes/ocgcore/field.h
View file @
763e3bc7
...
...
@@ -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
);
...
...
Classes/ocgcore/group.cpp
View file @
763e3bc7
...
...
@@ -25,6 +25,3 @@ group::group(duel* pd, const card_set& cset): container(cset) {
pduel
=
pd
;
is_readonly
=
FALSE
;
}
group
::~
group
()
{
}
Classes/ocgcore/group.h
View file @
763e3bc7
...
...
@@ -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_ */
Classes/ocgcore/processor.cpp
View file @
763e3bc7
...
...
@@ -4906,7 +4906,7 @@ int32 field::refresh_location_info(uint16 step) {
return
FALSE
;
}
case
1
:
{
if
(
core
.
disfield_effects
.
count
==
0
)
{
if
(
core
.
disfield_effects
.
size
()
==
0
)
{
core
.
units
.
begin
()
->
step
=
2
;
return
FALSE
;
}
...
...
@@ -4940,7 +4940,7 @@ int32 field::refresh_location_info(uint16 step) {
}
case
3
:
{
// If the blocking number is not reached, we should block more slots.
if
(
core
.
extram_effects
.
count
==
0
)
{
if
(
core
.
extram_effects
.
size
()
==
0
)
{
core
.
units
.
begin
()
->
step
=
4
;
return
FALSE
;
}
...
...
@@ -4980,7 +4980,7 @@ int32 field::refresh_location_info(uint16 step) {
}
case
5
:
{
// EFFECT_USE_EXTRA_SZONE version
if
(
core
.
extras_effects
.
count
==
0
)
{
if
(
core
.
extras_effects
.
size
()
==
0
)
{
core
.
units
.
begin
()
->
step
=
6
;
return
FALSE
;
}
...
...
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