public AgentDefaultController(AgentControllerState ag, IActorRef actorTextOutput) { _model = ag; _actorTextOutput = actorTextOutput; _random = new Random(); setupInitialStateFromModel(); }
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(); } }