Skip to content

Refactor population model - #2249

Merged
ldicker83 merged 13 commits into
mainfrom
RefactorPopulationModel
Jul 31, 2026
Merged

Refactor population model#2249
ldicker83 merged 13 commits into
mainfrom
RefactorPopulationModel

Conversation

@ldicker83

Copy link
Copy Markdown
Collaborator

Some basic/minor refactoring.

Changes PopulationModel::update() to use a parameter object instead of a long list of parameters. This will aid in future updates where I intend to inject transient modifiers into the update loop that are tracked outside of the population model (e.g., first landing fertility bonus and mortality resistance).

@ldicker83
ldicker83 requested a review from DanRStevens July 30, 2026 03:28

ghost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's a typo I would fix before merging. Also might be worth giving some consideration to the comment on naming conventions. Otherwise this looks good.

Comment thread libOPHD/Population/PopulationModel.cpp Outdated
Comment thread libOPHD/Population/Morale.h
Comment thread libOPHD/Population/PopulationModel.cpp
Comment thread libOPHD/Population/PopulationModel.cpp
Comment thread libOPHD/Population/PopulationModel.h
Comment thread libOPHD/Population/PopulationModel.cpp
Leeor Dicker added 2 commits July 31, 2026 19:18
_Originally posted by @DanRStevens in #2249 (review)
@ldicker83
ldicker83 merged commit 905c13e into main Jul 31, 2026
@ldicker83
ldicker83 deleted the RefactorPopulationModel branch July 31, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants