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

Replace the old pathfinding_settings with two new classes #77693

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CLIDragon
Copy link
Contributor

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

@github-actions 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 CLIDragon force-pushed the pathfinding-settings branch from e2a6fe5 to 1e66873 Compare November 9, 2024 07:50
@github-actions 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 CLIDragon force-pushed the pathfinding-settings branch from 1e66873 to 18e5d81 Compare November 11, 2024 07:31
@github-actions github-actions bot added the Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies label Nov 11, 2024
@CLIDragon CLIDragon force-pushed the pathfinding-settings branch from 18e5d81 to 0a9b8e8 Compare November 14, 2024 10:06
@Night-Pryanik Night-Pryanik reopened this Nov 25, 2024
@Night-Pryanik Night-Pryanik reopened this Nov 27, 2024
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 CLIDragon force-pushed the pathfinding-settings branch from 0a9b8e8 to 5aa4eac Compare January 1, 2025 07:50
@github-actions 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& ) {
Copy link
Contributor

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 & ) {

@GuardianDll
Copy link
Member

Please resolve clang-tidy errors

@CLIDragon CLIDragon marked this pull request as draft January 7, 2025 09:16
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants