Example #1
0
        public Map(PathfindingDemoGame game, int width, int height)
        {
            Game = game;
            grid = new Node[width, height];
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    grid[x, y] = new Node(x, y);
                }
            }

            foreach (Node node in grid)
            {
                node.UpdateNeighbors(this);
            }
        }
Example #2
0
 public MapGameState(PathfindingDemoGame game)
 {
     Game = game;
 }
Example #3
0
 public AStarGameState(PathfindingDemoGame game)
     : base(game)
 {
 }
Example #4
0
 public AStarOptimizedGameState(PathfindingDemoGame game)
     : base(game)
 {
 }
 public DijkstraGameState(PathfindingDemoGame game)
     : base(game)
 {
 }
 public PathfinderGameState(PathfindingDemoGame game)
     : base(game)
 {
     previousMouse = Mouse.GetState();
 }
Example #7
0
 public DijkstraOptimizedGameState(PathfindingDemoGame game)
     : base(game)
 {
 }
Example #8
0
 public EditorGameState(PathfindingDemoGame game)
     : base(game)
 {
 }