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

Point in pathfinding #32845

Merged
merged 2 commits into from
Aug 2, 2019
Merged

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

My ongoing campaign to increase use of point and tripoint for type safety and code clarity.

Describe the solution

Refactor pathfinding and simple_pathfinding to use point.

Add trig_dist overload for point.

Describe alternatives you've considered

There was an opportunity to use rectangle here, but I didn't. Might come back to that in the future.

Additional context

Working towards #32017.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Aug 2, 2019
@ZhilkinSerg ZhilkinSerg merged commit 6756016 into CleverRaven:master Aug 2, 2019
@jbytheway jbytheway deleted the point_in_pathfinding branch August 2, 2019 14:35
misterprimus pushed a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 2019
* Refactor some pathfinding code to use points

* Refactor simple_pathfinding to use more points

Also added a trig_dist overload for points.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants