-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Replace the old pathfinding_settings with two new classes #77693
Draft
CLIDragon
wants to merge
2
commits into
CleverRaven:master
Choose a base branch
from
CLIDragon:pathfinding-settings
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
NPC / Factions
NPCs, AI, Speech, Factions, Ownership
[C++]
Changes (can be) made in C++. Previously named `Code`
Monsters
Monsters both friendly and unfriendly.
labels
Nov 9, 2024
CLIDragon
force-pushed
the
pathfinding-settings
branch
from
November 9, 2024 07:50
e2a6fe5
to
1e66873
Compare
github-actions
bot
added
json-styled
JSON lint passed, label assigned by github actions
astyled
astyled PR, label is assigned by github actions
labels
Nov 9, 2024
CLIDragon
force-pushed
the
pathfinding-settings
branch
from
November 11, 2024 07:31
1e66873
to
18e5d81
Compare
github-actions
bot
added
the
Mutations / Traits / Professions/ Hobbies
Mutations / Traits / Professions/ Hobbies
label
Nov 11, 2024
CLIDragon
force-pushed
the
pathfinding-settings
branch
from
November 14, 2024 10:06
18e5d81
to
0a9b8e8
Compare
PathfindingSettings is the direct replacement for the old struct. It stores how the creature will react to a given terrain, and what actions they can take. RealityBubblePathfindingSettings contains settings that govern z-level movement and parameters related to pathfinding, such as the maximum path cost. Currently the extra features of these two classes are completely unused, as they are intended for integration with the new pathfinder. Co-authored-by: prharvey <[email protected]>
CLIDragon
force-pushed
the
pathfinding-settings
branch
from
January 1, 2025 07:50
0a9b8e8
to
5aa4eac
Compare
github-actions
bot
removed
the
astyled
astyled PR, label is assigned by github actions
label
Jan 1, 2025
const pathfinding_settings &settings, | ||
const std::function<bool( const tripoint_bub_ms & )> &avoid = []( const tripoint_bub_ms & ) { | ||
const PathfindingSettings &settings, | ||
const std::function<bool( const tripoint_bub_ms & )> &avoid = []( const tripoint_bub_ms& ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JSON & C++ formatters] reported by reviewdog 🐶
Suggested change
const std::function<bool( const tripoint_bub_ms & )> &avoid = []( const tripoint_bub_ms& ) { | |
const std::function<bool( const tripoint_bub_ms & )> &avoid = []( const tripoint_bub_ms & ) { |
Please resolve clang-tidy errors |
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`
json-styled
JSON lint passed, label assigned by github actions
Monsters
Monsters both friendly and unfriendly.
Mutations / Traits / Professions/ Hobbies
Mutations / Traits / Professions/ Hobbies
NPC / Factions
NPCs, AI, Speech, Factions, Ownership
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
Work towards finishing #75945.
Describe the solution
PathfindingSettings
is the direct replacement for the old struct. It stores how the creature will react to a given terrain, and what actions they can take.RealityBubblePathfindingSettings
contains settings that govern z-level movement and parameters related to pathfinding, such as the maximum path cost.Currently the extra features of these two classes are completely unused, as they are intended for integration with the new pathfinder.
Describe alternatives you've considered
Testing
Additional context