Esempio n. 1
0
        private void CreateAgent(PathNode connectedNode)
        {
            List <PathNode> visitedNodes = new(VisitedNodes.Count + 1);

            visitedNodes.AddRange(VisitedNodes);
            visitedNodes.Add(connectedNode);
            var newAgent = new PathfindingAgent(visitedNodes, connectedNode, Destination);

            SignalAgentCreation(newAgent);
        }
Esempio n. 2
0
 private void SignalAgentCreation(PathfindingAgent newAgent) => AgentCreated(newAgent);