Closed GoogleCodeExporter closed 9 years ago
I have finished implementing two new methods in the StateManager:
InactivateActiveState and ResetActiveState. The InactivateActiveState will
make the currently active state inactive without calling its DeInit method.
That way the state can retain its assets. The ResetActiveState will pause the
currently active state, call its ReInit method (newly added to the IState
interface class), and resume the currently active state. This will allow you
to restart the currently active state. This is the only way the ReInit method
is called so far. I also added better handling of HandleCleanup for recently
dropped states. Previously, the DropActiveState would not call HandleCleanup
ever. Now it gets called by IState::DoInit if mCleanup is true, this means
that ALL game states should call IState::DoInit FIRST before performing their
own DoInit stuff.
Original comment by RyanLind...@gmail.com
on 19 Feb 2011 at 4:38
Original issue reported on code.google.com by
youtube@my-gate.net
on 14 Feb 2011 at 1:50