All pastes #510672 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-26 00:18 UTC
rendered paste body

    bool Overlord::execute()
    {
        if (!managers.empty())
        {
            XGE::IManagerVec::iterator i;
            while (!quit)
            {
                Ogre::WindowEventUtilities::messagePump();
                i = vManagers.begin();
                while (i != vManagers.end())
                {
                    if ((*i)->_update())
                    {
                        quit = true;
                    }
                }
            }
        }
        else
        {
            throw(Ogre::Exception(Ogre::Exception::ERR_RT_ASSERTION_FAILED, "The Overlord was instructed to Execute() without any registered managers!", "Overlord.cpp"));
        }

        return quit;
    }