Exemple #1
0
spAspCell_t AspCellList::getCell(int id) {
   AspCellMap::iterator ci;
   spAspCell_t cell;
   int i;
   for (cell= getFirstCell(ci), i=0; cell != nullAspCell; cell= getNextCell(ci), i++) {
        if(i == id) return cell;
   }
   return nullAspCell;
}
SpellTarget* BasicLineSelector::getTargetFromCell(Cell* c) const
{
	try{
		Grid::DIRECTION dir;
		return new LineAoE(getFirstCell(c, &dir), dir, range);
	}
	catch (...)
	{
		return c;
	}
}
Exemple #3
0
// use first cell to determine wheither rois suitable for current FOV 
void AspFrame::loadRois(char *path) {
   spAspCell_t cell = getFirstCell();
   if(cell != nullAspCell) roiList->loadRois(cell,path);
}