Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Switching states  (Read 1447 times)

0 Members and 1 Guest are viewing this topic.

Haukinger

  • Newbie
  • *
  • Posts: 1
    • View Profile
Switching states
« on: September 04, 2010, 08:14:17 pm »
Hi all!

I've had a look at the Basic Game Engine at the wiki.
What is the recommended way to switch between states?

I'd guess one state accesses the app's state manager and set's the next state (or drops himself), but where to put that call? I'd assume IState::Draw() as it's the only method called once per tick. But it feels wrong to put game logic there...

Thanks a lot for your advice,
Hauke