void CvSelectionGroupAI::AI_groupBombard() { CLLNode<IDInfo>* pEntityNode = headUnitNode(); CvUnit* pLoopUnit = NULL; while (pEntityNode != NULL) { pLoopUnit = ::getUnit(pEntityNode->m_data); pEntityNode = nextUnitNode(pEntityNode); if (pLoopUnit->canBombard(plot())) { pLoopUnit->bombard(); } } }