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
d30a3bff
Commit
d30a3bff
authored
Oct 09, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
3255ac2a
b7f99548
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8 additions
and
28 deletions
+8
-28
card.cpp
card.cpp
+0
-12
card.h
card.h
+1
-1
effect.cpp
effect.cpp
+0
-3
effect.h
effect.h
+1
-1
effectset.h
effectset.h
+1
-0
field.cpp
field.cpp
+0
-3
field.h
field.h
+1
-1
group.cpp
group.cpp
+0
-3
group.h
group.h
+1
-1
processor.cpp
processor.cpp
+3
-3
No files found.
card.cpp
View file @
d30a3bff
...
@@ -144,18 +144,6 @@ card::card(duel* pd) {
...
@@ -144,18 +144,6 @@ card::card(duel* pd) {
spsummon_code
=
0
;
spsummon_code
=
0
;
current
.
controler
=
PLAYER_NONE
;
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
)
{
uint32
card
::
get_infos
(
byte
*
buf
,
int32
query_flag
,
int32
use_cache
)
{
int32
*
p
=
(
int32
*
)
buf
;
int32
*
p
=
(
int32
*
)
buf
;
int32
tdata
=
0
;
int32
tdata
=
0
;
...
...
card.h
View file @
d30a3bff
...
@@ -195,7 +195,7 @@ public:
...
@@ -195,7 +195,7 @@ public:
effect_set_v
immune_effect
;
effect_set_v
immune_effect
;
explicit
card
(
duel
*
pd
);
explicit
card
(
duel
*
pd
);
~
card
();
~
card
()
=
default
;
static
bool
card_operation_sort
(
card
*
c1
,
card
*
c2
);
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
));
}
const
bool
is_extra_deck_monster
()
{
return
!!
(
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
|
TYPE_LINK
));
}
...
...
effect.cpp
View file @
d30a3bff
...
@@ -51,9 +51,6 @@ effect::effect(duel* pd) {
...
@@ -51,9 +51,6 @@ effect::effect(duel* pd) {
target
=
0
;
target
=
0
;
value
=
0
;
value
=
0
;
operation
=
0
;
operation
=
0
;
}
effect
::~
effect
()
{
}
}
int32
effect
::
is_disable_related
()
{
int32
effect
::
is_disable_related
()
{
if
(
code
==
EFFECT_IMMUNE_EFFECT
||
code
==
EFFECT_DISABLE
||
code
==
EFFECT_CANNOT_DISABLE
||
code
==
EFFECT_FORBIDDEN
)
if
(
code
==
EFFECT_IMMUNE_EFFECT
||
code
==
EFFECT_DISABLE
||
code
==
EFFECT_CANNOT_DISABLE
||
code
==
EFFECT_FORBIDDEN
)
...
...
effect.h
View file @
d30a3bff
...
@@ -63,7 +63,7 @@ public:
...
@@ -63,7 +63,7 @@ public:
int32
operation
;
int32
operation
;
explicit
effect
(
duel
*
pd
);
explicit
effect
(
duel
*
pd
);
~
effect
();
~
effect
()
=
default
;
int32
is_disable_related
();
int32
is_disable_related
();
int32
is_can_be_forbidden
();
int32
is_can_be_forbidden
();
...
...
effectset.h
View file @
d30a3bff
...
@@ -101,6 +101,7 @@ struct effect_set_v {
...
@@ -101,6 +101,7 @@ struct effect_set_v {
effect
*&
at
(
int
index
)
{
effect
*&
at
(
int
index
)
{
return
container
[
index
];
return
container
[
index
];
}
}
private:
std
::
vector
<
effect
*>
container
;
std
::
vector
<
effect
*>
container
;
int
count
;
int
count
;
};
};
...
...
field.cpp
View file @
d30a3bff
...
@@ -106,9 +106,6 @@ field::field(duel* pduel) {
...
@@ -106,9 +106,6 @@ field::field(duel* pduel) {
nil_event
.
reason
=
0
;
nil_event
.
reason
=
0
;
nil_event
.
reason_effect
=
0
;
nil_event
.
reason_effect
=
0
;
nil_event
.
reason_player
=
PLAYER_NONE
;
nil_event
.
reason_player
=
PLAYER_NONE
;
}
field
::~
field
()
{
}
}
void
field
::
reload_field_info
()
{
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
...
...
field.h
View file @
d30a3bff
...
@@ -347,7 +347,7 @@ public:
...
@@ -347,7 +347,7 @@ public:
static
int32
field_used_count
[
32
];
static
int32
field_used_count
[
32
];
explicit
field
(
duel
*
pduel
);
explicit
field
(
duel
*
pduel
);
~
field
();
~
field
()
=
default
;
void
reload_field_info
();
void
reload_field_info
();
void
add_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
,
uint8
pzone
=
FALSE
);
void
add_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
,
uint8
pzone
=
FALSE
);
...
...
group.cpp
View file @
d30a3bff
...
@@ -25,6 +25,3 @@ group::group(duel* pd, const card_set& cset): container(cset) {
...
@@ -25,6 +25,3 @@ group::group(duel* pd, const card_set& cset): container(cset) {
pduel
=
pd
;
pduel
=
pd
;
is_readonly
=
FALSE
;
is_readonly
=
FALSE
;
}
}
group
::~
group
()
{
}
group.h
View file @
d30a3bff
...
@@ -31,7 +31,7 @@ public:
...
@@ -31,7 +31,7 @@ public:
explicit
group
(
duel
*
pd
);
explicit
group
(
duel
*
pd
);
group
(
duel
*
pd
,
card
*
pcard
);
group
(
duel
*
pd
,
card
*
pcard
);
group
(
duel
*
pd
,
const
card_set
&
cset
);
group
(
duel
*
pd
,
const
card_set
&
cset
);
~
group
();
~
group
()
=
default
;
};
};
#endif
/* GROUP_H_ */
#endif
/* GROUP_H_ */
processor.cpp
View file @
d30a3bff
...
@@ -4923,7 +4923,7 @@ int32 field::refresh_location_info(uint16 step) {
...
@@ -4923,7 +4923,7 @@ int32 field::refresh_location_info(uint16 step) {
return
FALSE
;
return
FALSE
;
}
}
case
1
:
{
case
1
:
{
if
(
core
.
disfield_effects
.
count
==
0
)
{
if
(
core
.
disfield_effects
.
size
()
==
0
)
{
core
.
units
.
begin
()
->
step
=
2
;
core
.
units
.
begin
()
->
step
=
2
;
return
FALSE
;
return
FALSE
;
}
}
...
@@ -4957,7 +4957,7 @@ int32 field::refresh_location_info(uint16 step) {
...
@@ -4957,7 +4957,7 @@ int32 field::refresh_location_info(uint16 step) {
}
}
case
3
:
{
case
3
:
{
// If the blocking number is not reached, we should block more slots.
// 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
;
core
.
units
.
begin
()
->
step
=
4
;
return
FALSE
;
return
FALSE
;
}
}
...
@@ -4997,7 +4997,7 @@ int32 field::refresh_location_info(uint16 step) {
...
@@ -4997,7 +4997,7 @@ int32 field::refresh_location_info(uint16 step) {
}
}
case
5
:
{
case
5
:
{
// EFFECT_USE_EXTRA_SZONE version
// EFFECT_USE_EXTRA_SZONE version
if
(
core
.
extras_effects
.
count
==
0
)
{
if
(
core
.
extras_effects
.
size
()
==
0
)
{
core
.
units
.
begin
()
->
step
=
6
;
core
.
units
.
begin
()
->
step
=
6
;
return
FALSE
;
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