public int m_nCurState;// This is my current state public static void Main() { States st = new States(); // Set state for'ate dinner' and 'slept well' to 'on' st.m_nCurState = st.m_nCurState | (MASK_ATE_DINNER | MASK_SLEPT_WELL); // Turn off the 'ate dinner' flag st.m_nCurState = (st.m_nCurState & ~MASK_ATE_DINNER); st.CheckCurrentState(); }