public Node(int x, int y, string nameOfTexture, bool traversableOnce) { neighbourHandler = new NeighbourHandler(this); TilePos = new Vector2(x, y); position = new Vector2(x * GameWorld.nodeSize, y * GameWorld.nodeSize); textureName = nameOfTexture; traversable = true; this.traversableOnce = traversableOnce; }
public Node(int x, int y) { neighbourHandler = new NeighbourHandler(this); TilePos = new Vector2(x, y); position = new Vector2(x * GameWorld.nodeSize, y * GameWorld.nodeSize); textureName = "groundSingleTile"; traversable = true; traversableOnce = false; }