コード例 #1
0
        public AgentDefaultController(AgentControllerState ag, IActorRef actorTextOutput)
        {
            _model = ag;
            _actorTextOutput = actorTextOutput;
            _random = new Random();

            setupInitialStateFromModel();
        }
コード例 #2
0
 public AgentDefaultController(AgentControllerState ag, IActorRef actorSolarSystem, IActorRef actorTextOutput)
 {
     _state            = ag;
     _actorSolarSystem = actorSolarSystem;
     _actorTextOutput  = actorTextOutput;
     _goapAgent        = new GoapAgent(this, this, _state);
     _memory           = JsonConvert.DeserializeObject <AgentDefaultMemory>(_state.Memory);
     if (_memory == null)
     {
         _memory = new AgentDefaultMemory();
     }
 }