Esempio n. 1
0
    const ESM::Cell *searchExt (int x, int y) const
    {
        ExtCells::const_iterator it = extCells.find (std::make_pair (x, y));

        if (it==extCells.end())
            return 0;

        return it->second;
    }
Esempio n. 2
0
    const Cell *searchExt (int x, int y) const
    {
        ExtCells::const_iterator it = extCells.find (x);

        if (it==extCells.end())
            return 0;

        ExtCellsCol::const_iterator it2 = it->second.find (y);

        if (it2 == it->second.end())
            return 0;

        return it2->second;
    }