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