// ----------------------------------------------------------------- // Name : getNextObjectAt // ----------------------------------------------------------------- MapObject * Map::getNextObjectAt(int x, int y, u32 type) { GraphicObject * pObj = (GraphicObject*) m_pTiles[x][y]->m_pMapObjects->getNext(0); while (pObj != NULL) { if (pObj->getType() & type) return (MapObject*) pObj; pObj = (GraphicObject*) m_pTiles[x][y]->m_pMapObjects->getNext(0); } return NULL; }