| 50 | } |
| 51 | |
| 52 | void StateManager::popState() |
| 53 | { |
| 54 | StateController* clenupState = getCurentState(); |
| 55 | |
| 56 | if (!mStates.empty()) |
| 57 | mStates.pop_back(); |
| 58 | |
| 59 | StateController* resumeState = getCurentState(); |
| 60 | |
| 61 | if (clenupState != nullptr) |
| 62 | clenupState->cleanupState(); |
| 63 | |
| 64 | if (resumeState != nullptr) |
| 65 | resumeState->resumeState(); |
| 66 | } |
| 67 | |
| 68 | bool StateManager::getStateActivate(StateController* _state) |
| 69 | { |
nothing calls this directly
no test coverage detected