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