Dwarrowdelf.Jobs.Assignments.MoveAssignment.GetPath C# (CSharp) Method

GetPath() protected method

protected GetPath ( ILivingObject worker ) : Queue
worker ILivingObject
return Queue
        protected override Queue<Direction> GetPath(ILivingObject worker)
        {
            var path = AStar.Find(m_environment, worker.Location, m_dest, this.Positioning);

            if (path == null)
                return null;

            return new Queue<Direction>(path);
        }