Skip to content

Conversation

@jere8184
Copy link
Contributor

@jere8184 jere8184 commented Jan 26, 2025

fixes: #1680

/**
* Array curve recording cell cost history,
*/
curve::Array<cost_t, CHUNK_SIZE> cell_cost_history;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

How should cell_cost_history be exposed? A simple getter that returns a constant ref to the curve?

Copy link
Member

Choose a reason for hiding this comment

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

Yes that would be enough I think.

Copy link
Member

@heinezen heinezen left a comment

Choose a reason for hiding this comment

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

Sorry for the long wait, I was very busy with work 😅 Now that I have some time, I added a few suggestions to the code.

/**
* Array curve recording cell cost history,
*/
curve::Array<cost_t, CHUNK_SIZE> cell_cost_history;
Copy link
Member

Choose a reason for hiding this comment

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

Yes that would be enough I think.

@heinezen heinezen added the area: simulation Involved in the game mechanics and simulation label Apr 8, 2025
@heinezen heinezen added improvement Enhancement of an existing component lang: c++ Done in C++ code labels Apr 8, 2025
@heinezen heinezen moved this from 📋 Backlog to 👀 In review in openage game simulation Apr 8, 2025
@jere8184 jere8184 force-pushed the pathfinder_history branch from 63c919d to b390440 Compare May 25, 2025 18:08
@jere8184 jere8184 requested a review from heinezen May 25, 2025 19:22
@github-project-automation github-project-automation bot moved this from 👀 In review to 🔖 TODO in openage game simulation May 25, 2025
@jere8184 jere8184 requested a review from heinezen October 25, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: simulation Involved in the game mechanics and simulation improvement Enhancement of an existing component lang: c++ Done in C++ code

Projects

Status: 🔖 TODO

Development

Successfully merging this pull request may close these issues.

Record history of cost changes in pathfinder

4 participants