public void SetNode(Node node, int x, int y) { Nodes[x, y] = node; }
public NodeMap() { Nodes = new Node[100,100]; }
public void AddTower(Node tower, int x, int y) { _towerIndexes.Add(new Point(x, y)); SetNode(tower, x, y); }
public void SetNode(Node node, int x, int y) { Nodes[x, y] = node; node.Index = new Point(x,y); }
public NodeMap() { Nodes = new Node[TileMap.MapWidth,TileMap.MapHeight]; _towerIndexes = new List<Point>(); Missiles = new MissilesPool(100); }