示例#1
0
文件: Node.cs 项目: Daseka/ZoneTwo
        public INode GetNeigbour(IMazeViewData mazeView, IDirection direction)
        {
            ILocation location = Location.Add(mazeView.MovementCube[direction.Value]);

            return(mazeView.GetNodeAt(location));
        }
示例#2
0
文件: Node.cs 项目: Daseka/ZoneTwo
 public IList <ILocation> GetAllPossibleNeighbours()
 {
     return(Location.GetAllPossibleNeighbours());
 }