Ejemplo n.º 1
0
Archivo: Node.cs Proyecto: MK4H/MHUrho
 protected Node(AStarAlg aStar, Vector3 position)
 {
     this.AStar    = aStar;
     this.Position = position;
     State         = NodeState.Untouched;
     outgoingEdges = new Dictionary <Node, MovementType>(new EqualityComparer());
 }
Ejemplo n.º 2
0
 public BuildingNode(IBuilding building,
                     Vector3 position,
                     object tag,
                     AStarAlg aStar)
     : base(aStar, position)
 {
     this.Building = building;
     this.Tag      = tag;
     incomingEdges = new List <INode>();
     AStar.GetTileNode(position).AddNodeOnThisTile(this);
 }
Ejemplo n.º 3
0
 public TileNode(ITile tile, AStarAlg aStar)
     : base(aStar, tile.Center3)
 {
     this.Tile       = tile;
     nodesOnThisTile = new List <Node>();
 }