Ejemplo n.º 1
0
        public PopStateMessage(GameState curState)
        {
            if(curState == null)
                throw new NullReferenceException("Cannot Make PopStateMessage without valid current state");

            this.curState = curState;
        }
Ejemplo n.º 2
0
        public PushNewStateMessage(GameState newState)
        {
            //make sure the state is valid
            if (newState == null)
                throw new NullReferenceException("Cannot Make PushNewStateMessage without valid target state");

            targetState = newState;
        }