Commit 6f76bf07 authored by Chen Bill's avatar Chen Bill

default init

parent 69f7dcf0
......@@ -55,25 +55,7 @@ bool tevent::operator< (const tevent& v) const {
}
field::field(duel* pduel) {
this->pduel = pduel;
infos.field_id = 1;
infos.copy_id = 1;
infos.can_shuffle = TRUE;
infos.turn_id = 0;
infos.turn_id_by_player[0] = 0;
infos.turn_id_by_player[1] = 0;
infos.card_id = 1;
infos.phase = 0;
infos.turn_player = 0;
for (int32 i = 0; i < 2; ++i) {
//cost[i].count = 0;
//cost[i].amount = 0;
player[i].lp = 8000;
player[i].start_count = 5;
player[i].draw_count = 1;
player[i].disabled_location = 0;
player[i].used_location = 0;
player[i].extra_p_count = 0;
player[i].tag_extra_p_count = 0;
player[i].list_mzone.resize(7, 0);
player[i].list_szone.resize(8, 0);
player[i].list_main.reserve(60);
......@@ -82,8 +64,6 @@ field::field(duel* pduel) {
player[i].list_remove.reserve(75);
player[i].list_extra.reserve(30);
}
returns = { 0 };
temp_card = nullptr;
}
void field::reload_field_info() {
pduel->write_buffer8(MSG_RELOAD_FIELD);
......
......@@ -80,9 +80,9 @@ struct chain {
};
struct player_info {
int32 lp{ 0 };
int32 start_count{ 0 };
int32 draw_count{ 0 };
int32 lp{ 8000 };
int32 start_count{ 5 };
int32 draw_count{ 1 };
uint32 used_location{ 0 };
uint32 disabled_location{ 0 };
uint32 extra_p_count{ 0 };
......@@ -127,19 +127,19 @@ struct field_effect {
grant_effect_container grant_effect;
};
struct field_info {
int32 field_id{ 0 };
int16 copy_id{ 0 };
int16 turn_id{ 0 };
int32 field_id{ 1 };
int16 copy_id{ 1 };
int16 turn_id{};
int16 turn_id_by_player[2]{};
int16 card_id{ 0 };
uint16 phase{ 0 };
uint8 turn_player{ 0 };
int16 card_id{ 1 };
uint16 phase{};
uint8 turn_player{};
uint8 priorities[2]{};
uint8 can_shuffle{ TRUE };
};
struct lpcost {
int32 count{ 0 };
int32 amount{ 0 };
int32 count{};
int32 amount{};
int32 lpstack[8]{};
};
struct processor_unit {
......@@ -306,7 +306,7 @@ struct processor {
uint8 extra_summon[2]{};
int32 spe_effect[2]{};
int32 last_select_hint[2]{ 0 };
int32 duel_options{ 0 };
uint32 duel_options{ 0 };
int32 duel_rule{ CURRENT_RULE };
uint32 copy_reset{ 0 };
int32 copy_reset_count{ 0 };
......@@ -374,12 +374,12 @@ public:
duel* pduel;
player_info player[2];
card* temp_card;
card* temp_card{};
field_info infos;
//lpcost cost[2];
field_effect effects;
processor core;
return_value returns;
return_value returns{};
tevent nil_event;
static int32 field_used_count[32];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment