diff --git a/python-api-src/lib_unit.cpp b/python-api-src/lib_unit.cpp index 51026485aecca7d226050e89c003c40ad559ead1..26ea8da84a2d6672cf3a73efedc1cda05f28c919 100644 --- a/python-api-src/lib_unit.cpp +++ b/python-api-src/lib_unit.cpp @@ -28,7 +28,7 @@ void define_unit(py::module & m) .def_property_readonly("is_blip", &Unit::isBlip) .def_property_readonly("target", &Unit::getTarget) .def_property_readonly("has_target", &Unit::hasTarget) - .def_property_readonly("max_hit_points", &Unit::getMaxHitPoints) + .def_property_readonly("max_hit_points", &Unit::getMaxHitPoints) .def("stop", &Unit::stop) .def("attack_unit", &Unit::attackUnit) .def("attack_move", &Unit::attackMove) diff --git a/python-api-src/lib_unittype.cpp b/python-api-src/lib_unittype.cpp index 35313deacf2f308b88347d6c789d200b3ab5f333..0946c514cea674458340ac6f0c6163c7176c4f2b 100644 --- a/python-api-src/lib_unittype.cpp +++ b/python-api-src/lib_unittype.cpp @@ -10,7 +10,7 @@ void define_unittype(py::module & m) .def_property_readonly("unit_typeid", [](UnitType & unit_type) { return static_cast<sc2::UNIT_TYPEID>(unit_type.getAPIUnitType()); }) .def_property_readonly("name", &UnitType::getName) .def_property_readonly("race", &UnitType::getRace) - .def_property_readonly("movement_speed", &UnitType::getMovementSpeed) + .def_property_readonly("movement_speed", &UnitType::getMovementSpeed) .def_property_readonly("is_valid", &UnitType::isValid) .def_property_readonly("is_building", &UnitType::isBuilding) .def_property_readonly("is_combat_unit", &UnitType::isCombatUnit, "The unit is not any of the following: worker, supply provider, building, larva, egg") @@ -44,4 +44,4 @@ void define_unittype(py::module & m) // Not implemented in CommandCenter //.def("whatBuilds", &UnitType::whatBuilds); -} \ No newline at end of file +} diff --git a/src/Unit.cpp b/src/Unit.cpp index 15277c8cb352e78a630186c39e66581aa6535660..beccfffc136207a24fc5b3d8d599c2af78654bf8 100644 --- a/src/Unit.cpp +++ b/src/Unit.cpp @@ -303,11 +303,11 @@ Unit Unit::getTarget() const BOT_ASSERT(isValid(), "Unit is not valid"); BOT_ASSERT(hasTarget(), "Unit has no target"); - //if unit has order, check tag of target of first order + // if unit has order, check tag of target of first order if(getUnitPtr()->orders.size() > 0){ - //t_id is set to the unit tag of the target + // t_id is set to the unit tag of the target CCUnitID t_id = getUnitPtr()->orders[0].target_unit_tag; - //IDAbot finds the unit with this tag + // IDABot finds the unit with this tag return m_bot->GetUnit(t_id); } @@ -344,4 +344,4 @@ CCHealth Unit::getMaxHitPoints() const { BOT_ASSERT(isValid(), "Unit is not valid"); return m_unit->health_max; -} \ No newline at end of file +} diff --git a/src/Unit.h b/src/Unit.h index f9c51a711658f49ed53787aba5e4832c3236bc7d..a7c8305fdbe16472b0fae01ae4230d83b70327c5 100644 --- a/src/Unit.h +++ b/src/Unit.h @@ -50,7 +50,7 @@ public: bool isBlip() const; bool hasTarget() const; Unit getTarget() const; - CCHealth getMaxHitPoints() const; + CCHealth getMaxHitPoints() const; void stop () const; void attackUnit (const Unit & target) const; diff --git a/src/UnitType.h b/src/UnitType.h index 8f9d9755a634e6058bff62eca9cf0cbd0679ec7b..6c8d04347c8ea5a8d9de52a851aa3c419ad0bbc9 100644 --- a/src/UnitType.h +++ b/src/UnitType.h @@ -23,7 +23,7 @@ public: std::string getName() const; CCRace getRace() const; - int getMovementSpeed() const; + int getMovementSpeed() const; bool isValid() const; bool isBuilding() const;