@@ -9,10 +9,10 @@ void init_constants() {
99
1010 std::unordered_map<size_t , Attributes> attacker_type_to_attributes;
1111 for (size_t i = 1 ; i <= Constants::NO_OF_ATTACKER_TYPES; i++) {
12- unsigned hp, range, attack_power, speed, price;
13- std::cin >> hp >> range >> attack_power >> speed >> price;
12+ unsigned hp, range, attack_power, speed, price, is_aerial ;
13+ std::cin >> hp >> range >> attack_power >> speed >> price >> is_aerial ;
1414 attacker_type_to_attributes.insert (
15- std::make_pair (i, Attributes (hp, range, attack_power, speed, price)));
15+ std::make_pair (i, Attributes (hp, range, attack_power, speed, price, is_aerial )));
1616 }
1717 Constants::ATTACKER_TYPE_ATTRIBUTES = attacker_type_to_attributes;
1818
@@ -21,10 +21,10 @@ void init_constants() {
2121
2222 std::unordered_map<size_t , Attributes> defender_type_to_attributes;
2323 for (size_t i = 1 ; i <= Constants::NO_OF_DEFENDER_TYPES; i++) {
24- unsigned hp, range, attack_power, speed, price;
25- std::cin >> hp >> range >> attack_power >> speed >> price;
24+ unsigned hp, range, attack_power, speed, price, is_aerial ;
25+ std::cin >> hp >> range >> attack_power >> speed >> price >> is_aerial ;
2626 defender_type_to_attributes.insert (
27- std::make_pair (i, Attributes (hp, range, attack_power, speed, price)));
27+ std::make_pair (i, Attributes (hp, range, attack_power, speed, price, is_aerial )));
2828 }
2929 Constants::DEFENDER_TYPE_ATTRIBUTES = defender_type_to_attributes;
3030}
0 commit comments