Пример #1
0
        public Screen()
        {
            m_normalState = new NormalState();
            m_largerState = new LargerState();
            m_largestState = new LargestState();

            SetState(m_normalState);
            m_currentState.Display();
        }
Пример #2
0
 public void SetState(State state)
 {
     m_currentState = state;
 }