troptrop

bot stuff

Dec 22nd, 2022 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1.  
  2. for (int i = 0; i < 3; i++)
  3. {
  4. for (int j = 0; j <= 3; j++)
  5. {
  6. mtMortar[6 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Right, NextTile = mtMortar[7 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
  7. 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 });
  8. mtMortar[7 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Left, NextTile = mtMortar[6 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
  9. 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 });
  10. }
  11. }
  12.  
  13. for (int i = 0; i <= 3; i++)
  14. {
  15. for (int j = 0; j < 3; j++)
  16. {
  17. mtMortar[6 + i, 2 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Down, NextTile = mtMortar[6 + i, 3 + j], NextEdgeset = 0, Cost = 8 });
  18. 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 });
  19. mtMortar[6 + i, 3 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Up, NextTile = mtMortar[6 + i, 2 + j], NextEdgeset = 0, Cost = 8 });
  20. 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 });
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment