Exemplo n.º 1
0
    /* The following function does the following:
     * 1) Remove references to the node from zones the node is visiting
     * 2) Clear the node's list of zones it is visiting
     */
    void PCZSceneNode::clearNodeFromVisitedZones( void )
    {
        if (mVisitingZones.size() > 0)
        {
            // first go through the list of zones this node is visiting 
            // and remove references to this node
            PCZone* zone;
            ZoneMap::iterator it = mVisitingZones.begin();

            while ( it != mVisitingZones.end() )
            {
                zone = it->second;
                zone->removeNode(this);
                ++it;
            }

            // second, clear the visiting zones list
            mVisitingZones.clear();

        }
    }