Skip to main content

GetCurrentStateID

    //////
    ////// EXAMPLE ONE
    StateID *result = m_CurrentState->RunState();
    int w = *result;
    int q = *m_CurrentState->GetCurrentStateID();

    // Check Statement
    if (w != q)
    {
        SetState(result);
    }
   
    ///////
    /////// EXAMPLE TWO
    StateID* result = m_CurrentState->RunState();
    StateID w = *result;
    StateID q = *m_CurrentState->GetCurrentStateID();

    // Check Statement
    if (w != q)
    {
        SetState(result);
    }