Classes sleeping?

Mar 24, 2011 at 11:16am
Hi, in my game engine i have:

1
2
3
4
5
6
7
else
      {
        // Make sure the game engine isn't sleeping
        if (!GameEngine::GetEngine()->GetSleep())
        {
        }


Here i am checking if the game engine (game engine class) is sleeping.

1. What do we mean when we say "sleeping"?
2. What causes a class to be "sleeping"?

As you can tell i dont know what my book means when it wants to check if the game engine isn't sleeping.

Thanks
Mar 24, 2011 at 1:57pm
Classes don't sleep per se - but games can be 'paused' - I assume that is what they mean here.
Mar 24, 2011 at 8:13pm
Thats right, that is what i mean. When you say paused, do you mean actually paused, like when you press ESC in a pc game to bring up the menu, that type of pause?
Mar 24, 2011 at 10:25pm
? :)
Mar 24, 2011 at 10:25pm
Tp... that is YOUR code. Don't go ask around asking others what your own programs are doing. Terminology may vary, the only one who can tell for sure is the author of the class.
Mar 25, 2011 at 12:47am
If its meant "pausing",it may be to pause "updating display","doing calculations","stopping some timers" etc.

Topic archived. No new replies allowed.