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