Exemplo n.º 1
0
        AvoidGrid ProcessRequest(AvoidRequest request)
        {
            var avoidGrid = GetAvoidGrid(request.map);

            GenerateCells(request.map, request.specs, avoidGrid.GetNewCosts(), avoidGrid.filler);
            avoidGrid.FinalizeCosts();
            return(avoidGrid);
        }
Exemplo n.º 2
0
        public void UpdateZombiePositions(Map map, List <ZombieCostSpecs> specs)
        {
            var request = new AvoidRequest()
            {
                map = map, specs = specs
            };

            requestQueue.Enqueue(request, req => req.map == map);
        }