src/GameCommander.cpp
void GameCommander::setCombatUnits()
{
    for (auto & unit : m_validUnits)
    {
        BOT_ASSERT(unit.isValid(), "Have a null unit in our valid units\n");

        if (!isAssigned(unit) && unit.getType().isCombatUnit())
        {
			if (unit.getAPIUnitType() == sc2::UNIT_TYPEID::TERRAN_KD8CHARGE)
				continue;

            assignUnit(unit, m_combatUnits);
        }
    }
}
// sets combat units to be passed to CombatCommander
sets combat units to be passed to CombatCommander
sets combat units to be passed to CombatCommander
void GameCommander::setCombatUnits()
{
    for (auto & unit : m_validUnits)
    {
        BOT_ASSERT(unit.isValid(), "Have a null unit in our valid units\n");
        if (!isAssigned(unit) && unit.getType().isCombatUnit())
        {
			if (unit.getAPIUnitType() == sc2::UNIT_TYPEID::TERRAN_KD8CHARGE)
				continue;
            assignUnit(unit, m_combatUnits);
        }
    }
}
void GameCommander :: setCombatUnits ( ) { for ( auto & unit : m_validUnits ) { BOT_ASSERT ( unit . isValid ( ) , " \n " ) ; if ( ! isAssigned ( unit ) && unit . getType ( ) . isCombatUnit ( ) ) { if ( unit . getAPIUnitType ( ) == sc2 :: UNIT_TYPEID :: TERRAN_KD8CHARGE ) continue ; assignUnit ( unit , m_combatUnits ) ; } } }
sets combat units to be passed to CombatCommander
sets combat units to be passed to CombatCommander