Exemplo n.º 1
0
Arquivo: Node.cs Projeto: MK4H/MHUrho
 protected Node(AStarAlg aStar, Vector3 position)
 {
     this.AStar    = aStar;
     this.Position = position;
     State         = NodeState.Untouched;
     outgoingEdges = new Dictionary <Node, MovementType>(new EqualityComparer());
 }
Exemplo 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);
 }
Exemplo n.º 3
0
 public TileNode(ITile tile, AStarAlg aStar)
     : base(aStar, tile.Center3)
 {
     this.Tile       = tile;
     nodesOnThisTile = new List <Node>();
 }