It comes from the Legend of Revolutions Mod. It is from the CVPlayer.cpp file. It is trying to delete a unit and it goes to looking at selection groups. Is a selection group a group of selected units? If yes what happens if a unit is unselectable?
Code:
void CvPlayer::deleteUnit(int iID)
{
m_units.removeAt(iID);
}
CvSelectionGroup* CvPlayer::firstSelectionGroup(int *pIterIdx, bool bRev) const
{
return !bRev ? m_selectionGroups.beginIter(pIterIdx) : m_selectionGroups.endIter(pIterIdx);
}
CvSelectionGroup* CvPlayer::nextSelectionGroup(int *pIterIdx, bool bRev) const
{
return !bRev ? m_selectionGroups.nextIter(pIterIdx) : m_selectionGroups.prevIter(pIterIdx);
}
int CvPlayer::getNumSelectionGroups() const
{
return m_selectionGroups.getCount();
}
CvSelectionGroup* CvPlayer::getSelectionGroup(int iID) const
{
return ((CvSelectionGroup *)(m_selectionGroups.getAt(iID)));
}
CvSelectionGroup* CvPlayer::addSelectionGroup()
{
return ((CvSelectionGroup *)(m_selectionGroups.add()));
}