示例#1
0
        public override void LoadState(AgentState state)
        {
            MobileAgentState st = (MobileAgentState)state;

            _firstStart = st.FirstStart;
            _log        = st.Log;
            _moves      = st.Moves;
        }
示例#2
0
        public override AgentState SaveState()
        {
            MobileAgentState state = new MobileAgentState();

            state.FirstStart = _firstStart;
            state.Log        = _log;
            state.Moves      = _moves;
            return(state);
        }