Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathfinder upgrade #126

Merged
merged 171 commits into from Jul 16, 2020
Merged

Pathfinder upgrade #126

merged 171 commits into from Jul 16, 2020

Conversation

kmfrick
Copy link
Contributor

@kmfrick kmfrick commented Apr 12, 2019

Checklist

  • Any-angle pathfinding
  • Movement not requiring node connectedness
  • Blocking actors
  • Actor bumping
  • Avoid actor bumping whenever possible and just re-path around
  • Track moving targets
  • Stop if a door on the way is closed while moving

@lynxlynxlynx
Copy link
Member

Great! I updated a few details in #106 yesterday, all regarding to the various npc bumping aspects.

@gemrb gemrb deleted a comment Apr 12, 2019
@gemrb gemrb deleted a comment Apr 12, 2019
@gemrb gemrb deleted a comment Apr 12, 2019
@gemrb gemrb deleted a comment Apr 12, 2019
@gemrb gemrb deleted a comment Apr 12, 2019
@gemrb gemrb deleted a comment Apr 13, 2019
@gemrb gemrb deleted a comment Apr 13, 2019
@gemrb gemrb deleted a comment Apr 13, 2019
@gemrb gemrb deleted a comment Apr 13, 2019
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.h Outdated Show resolved Hide resolved
// target (the goal must be in sight of the end, if PF_SIGHT is specified)
PathNode *Map::FindPath(const Point &s, const Point &d, unsigned int size, unsigned int minDistance, int flags, const Actor *caller) const
{
Log(DEBUG, "FindPath", "s = (%d, %d), d = (%d, %d), caller = %s, dist = %d, size = %d", s.x, s.y, d.x, d.y, caller ? caller->GetName(0) : "NULL", minDistance, size);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Time to go or should we wait a bit?

Suggested change
Log(DEBUG, "FindPath", "s = (%d, %d), d = (%d, %d), caller = %s, dist = %d, size = %d", s.x, s.y, d.x, d.y, caller ? caller->GetName(0) : "NULL", minDistance, size);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is less frequent. I think we can leave it in for now, and if somebody complains about a spam of these it's either an issue or we can just remove it then. If nobody complains about it for, say, a month, then I guess it can go.

gemrb/core/PathFinder.cpp Outdated Show resolved Hide resolved
gemrb/core/PathFinder.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
gemrb/core/Map.cpp Outdated Show resolved Hide resolved
@kmfrick kmfrick changed the title WIP Pathfinder: movement not bound to grid anymore Pathfinder upgrade Jul 16, 2020
@lynxlynxlynx
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 2
           

Clones removed
==============
+ gemrb/core/Map.cpp  -15
         

See the complete overview on Codacy

@lynxlynxlynx lynxlynxlynx merged commit f7925b3 into gemrb:master Jul 16, 2020
@kmfrick kmfrick deleted the new-pathfinder branch July 16, 2020 10:19
@lynxlynxlynx
Copy link
Member

Thanks for taking this long path with me! 🎆

@kmfrick
Copy link
Contributor Author

kmfrick commented Jul 16, 2020

Thanks for taking this long path with me! fireworks

I hope these commits find their new home comfortable! ❄️(sorry, had to do this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants