Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 3; i++)
- {
- for (int j = 0; j <= 3; j++)
- {
- mtMortar[6 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Right, NextTile = mtMortar[7 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[6 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Right | Action.A, NextTile = mtMortar[7 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[7 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Left, NextTile = mtMortar[6 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[7 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Left | Action.A, NextTile = mtMortar[6 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
- }
- }
- for (int i = 0; i <= 3; i++)
- {
- for (int j = 0; j < 3; j++)
- {
- mtMortar[6 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Down, NextTile = mtMortar[6 + i, 3 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[6 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Down | Action.A, NextTile = mtMortar[6 + i, 3 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[6 + i, 3 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Up, NextTile = mtMortar[6 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[6 + i, 3 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Up | Action.A, NextTile = mtMortar[6 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment